0a5ab058a6
- Angular 12 application with PrimeNG components - 5 existing Cypress e2e test suites - SCSS styling with BEM naming convention - i18n support (10 languages) - Leaflet map integration - Complete component hierarchy and routing structure This baseline will be used for Angular → React migration.
22 lines
655 B
JavaScript
22 lines
655 B
JavaScript
'use strict';
|
|
|
|
var $TypeError = require('es-errors/type');
|
|
|
|
var IteratorComplete = require('./IteratorComplete');
|
|
var IteratorNext = require('./IteratorNext');
|
|
|
|
var isIteratorRecord = require('../helpers/records/iterator-record');
|
|
|
|
// https://262.ecma-international.org/15.0/#sec-iteratorstep
|
|
|
|
module.exports = function IteratorStep(iteratorRecord) {
|
|
if (!isIteratorRecord(iteratorRecord)) {
|
|
throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1
|
|
}
|
|
|
|
var result = IteratorNext(iteratorRecord); // step 1
|
|
var done = IteratorComplete(result); // step 2
|
|
return done === true ? false : result; // steps 3-4
|
|
};
|
|
|