uni-ticket-system/node_modules/core-js/internals/iterate-simple.js

11 lines
287 B
JavaScript
Raw Normal View History

2023-12-05 02:11:10 +00:00
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;
}
};