source: imaps-frontend/node_modules/es-abstract/2016/IteratorStep.js@ d565449

main
Last change on this file since d565449 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
RevLine 
[d565449]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.