UNPKG

362 BJavaScriptView Raw
1'use strict';
2var isPrototypeOf = require('../../internals/object-is-prototype-of');
3var method = require('../array/virtual/find-index');
4
5var ArrayPrototype = Array.prototype;
6
7module.exports = function (it) {
8 var own = it.findIndex;
9 return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.findIndex) ? method : own;
10};