source: trip-planner-front/node_modules/core-js/modules/esnext.iterator.some.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 529 bytes
Line 
1'use strict';
2// https://github.com/tc39/proposal-iterator-helpers
3var $ = require('../internals/export');
4var iterate = require('../internals/iterate');
5var aFunction = require('../internals/a-function');
6var anObject = require('../internals/an-object');
7
8$({ target: 'Iterator', proto: true, real: true }, {
9 some: function some(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});
Note: See TracBrowser for help on using the repository browser.