BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/es-iterator-helpers/Iterator.from
Run
Logout
Edit File
Size: 1.02 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/es-iterator-helpers/Iterator.from/implementation.js
Text
Base64
'use strict'; var $TypeError = require('es-errors/type'); var GetIteratorFlattenable = require('../aos/GetIteratorFlattenable'); var OrdinaryHasInstance = require('es-abstract/2024/OrdinaryHasInstance'); var OrdinaryObjectCreate = require('es-abstract/2024/OrdinaryObjectCreate'); var $Iterator = require('../Iterator/polyfill')(); var $WrapForValidIteratorPrototype = require('../WrapForValidIteratorPrototype'); var SLOT = require('internal-slot'); module.exports = function from(O) { if (this instanceof from) { throw new $TypeError('`Iterator.from` is not a constructor'); } var iteratorRecord = GetIteratorFlattenable(O, 'ITERATE-STRINGS'); // step 1 var hasInstance = OrdinaryHasInstance($Iterator, iteratorRecord['[[Iterator]]']); // step 2 if (hasInstance) { // step 3 return iteratorRecord['[[Iterator]]']; // step 3.a } var wrapper = OrdinaryObjectCreate($WrapForValidIteratorPrototype); // , ['[[Iterated]]']); // step 4 SLOT.set(wrapper, '[[Iterated]]', iteratorRecord); // step 5 return wrapper; // step 6 };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
auto.js
36 B
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
implementation.js
1.02 KB
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
379 B
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
polyfill.js
232 B
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
shim.js
412 B
lrw-r--r--
2025-03-28 11:04:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).