find-last-index.js 290 B

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