aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/core.get-iterator-method.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/core.get-iterator-method.js')
-rw-r--r--node_modules/core-js/modules/core.get-iterator-method.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/core.get-iterator-method.js b/node_modules/core-js/modules/core.get-iterator-method.js
new file mode 100644
index 00000000..9b6fa62a
--- /dev/null
+++ b/node_modules/core-js/modules/core.get-iterator-method.js
@@ -0,0 +1,8 @@
+var classof = require('./_classof');
+var ITERATOR = require('./_wks')('iterator');
+var Iterators = require('./_iterators');
+module.exports = require('./_core').getIteratorMethod = function (it) {
+ if (it != undefined) return it[ITERATOR]
+ || it['@@iterator']
+ || Iterators[classof(it)];
+};