.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / get-iterator.js
1 var anObject = require('../internals/an-object');
2 var getIteratorMethod = require('../internals/get-iterator-method');
3
4 module.exports = function (it) {
5   var iteratorMethod = getIteratorMethod(it);
6   if (typeof iteratorMethod != 'function') {
7     throw TypeError(String(it) + ' is not iterable');
8   } return anObject(iteratorMethod.call(it));
9 };