Sha256: f02bcf61e17ecfd6a7c7f05e8bdab842232beb6b73c9cc2d0d45b27352495c18
Contents?: true
Size: 555 Bytes
Versions: 27
Compression:
Stored size: 555 Bytes
Contents
'use strict'; var IteratorComplete = require('./IteratorComplete'); var IteratorNext = require('./IteratorNext'); var Type = require('./Type'); var assertRecord = require('../helpers/assertRecord'); // https://262.ecma-international.org/14.0/#sec-iteratorstep module.exports = function IteratorStep(iteratorRecord) { assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); var result = IteratorNext(iteratorRecord); // step 1 var done = IteratorComplete(result); // step 2 return done === true ? false : result; // steps 3-4 };
Version data entries
27 entries across 27 versions & 2 rubygems