Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / iterator-close.js
1 var anObject = require('../internals/an-object');
2
3 module.exports = function (iterator) {
4   var returnMethod = iterator['return'];
5   if (returnMethod !== undefined) {
6     return anObject(returnMethod.call(iterator)).value;
7   }
8 };