Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.iterator.every.js
1 'use strict';
2 // https://github.com/tc39/proposal-iterator-helpers
3 var $ = require('../internals/export');
4 var iterate = require('../internals/iterate');
5 var aFunction = require('../internals/a-function');
6 var anObject = require('../internals/an-object');
7
8 $({ target: 'Iterator', proto: true, real: true }, {
9   every: function every(fn) {
10     anObject(this);
11     aFunction(fn);
12     return !iterate(this, function (value, stop) {
13       if (!fn(value)) return stop();
14     }, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
15   }
16 });