find-last.js 264 B

12345678
  1. var findLast = require('../array/virtual/find-last');
  2. var ArrayPrototype = Array.prototype;
  3. module.exports = function (it) {
  4. var own = it.findLast;
  5. return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.findLast) ? findLast : own;
  6. };