You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xxdj1/node_modules/core-js/internals/iterate-simple.js

10 lines
287 B

var call = require('../internals/function-call');
module.exports = function (iterator, fn, $next) {
var next = $next || iterator.next;
var step, result;
while (!(step = call(next, iterator)).done) {
result = fn(step.value);
if (result !== undefined) return result;
}
};