Version 1
[yaffs-website] / node_modules / core-js / modules / core.get-iterator.js
diff --git a/node_modules/core-js/modules/core.get-iterator.js b/node_modules/core-js/modules/core.get-iterator.js
new file mode 100644 (file)
index 0000000..c292e1a
--- /dev/null
@@ -0,0 +1,7 @@
+var anObject = require('./_an-object')
+  , get      = require('./core.get-iterator-method');
+module.exports = require('./_core').getIterator = function(it){
+  var iterFn = get(it);
+  if(typeof iterFn != 'function')throw TypeError(it + ' is not iterable!');
+  return anObject(iterFn.call(it));
+};
\ No newline at end of file