source: imaps-frontend/node_modules/es-abstract/2021/IteratorStep.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 348 bytes
Line 
1'use strict';
2
3var IteratorComplete = require('./IteratorComplete');
4var IteratorNext = require('./IteratorNext');
5
6// https://262.ecma-international.org/6.0/#sec-iteratorstep
7
8module.exports = function IteratorStep(iterator) {
9 var result = IteratorNext(iterator);
10 var done = IteratorComplete(result);
11 return done === true ? false : result;
12};
13
Note: See TracBrowser for help on using the repository browser.