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
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var IteratorComplete = require('./IteratorComplete');
|
---|
4 | var IteratorNext = require('./IteratorNext');
|
---|
5 |
|
---|
6 | // https://262.ecma-international.org/6.0/#sec-iteratorstep
|
---|
7 |
|
---|
8 | module.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.