aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/es/instance/last-index-of.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/es/instance/last-index-of.js')
-rw-r--r--node_modules/core-js/es/instance/last-index-of.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/core-js/es/instance/last-index-of.js b/node_modules/core-js/es/instance/last-index-of.js
new file mode 100644
index 0000000..729bc65
--- /dev/null
+++ b/node_modules/core-js/es/instance/last-index-of.js
@@ -0,0 +1,8 @@
+var lastIndexOf = require('../array/virtual/last-index-of');
+
+var ArrayPrototype = Array.prototype;
+
+module.exports = function (it) {
+ var own = it.lastIndexOf;
+ return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.lastIndexOf) ? lastIndexOf : own;
+};