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