find-index.js 269 B

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