Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/node_modules/es-abstract/2016/ |
Upload File : |
'use strict'; var GetIntrinsic = require('../GetIntrinsic'); var $iterator = GetIntrinsic('%Symbol.iterator%', true); var callBound = require('../helpers/callBound'); var $arrayJoin = callBound('Array.prototype.join'); var $arrayPush = callBound('Array.prototype.push'); var $stringSlice = callBound('String.prototype.slice'); var $stringSplit = callBound('String.prototype.split'); var AdvanceStringIndex = require('./AdvanceStringIndex'); var GetIterator = require('./GetIterator'); var GetMethod = require('./GetMethod'); var IsArray = require('./IsArray'); var IteratorStep = require('./IteratorStep'); var IteratorValue = require('./IteratorValue'); var ToObject = require('./ToObject'); var Type = require('./Type'); // https://www.ecma-international.org/ecma-262/7.0/#sec-iterabletoarraylike module.exports = function IterableToArrayLike(items) { var usingIterator; if ($iterator) { usingIterator = GetMethod(items, $iterator); } else if (IsArray(items)) { usingIterator = function () { var i = -1; var arr = this; // eslint-disable-line no-invalid-this return { next: function () { i += 1; return { done: i >= arr.length, value: arr[i] }; } }; }; } else if (Type(items) === 'String') { usingIterator = function () { var i = 0; return { next: function () { var nextIndex = AdvanceStringIndex(items, i, true); var value = $arrayJoin($stringSplit($stringSlice(items, i, nextIndex), ''), ''); i = nextIndex; return { done: nextIndex > items.length, value: value }; } }; }; } if (typeof usingIterator !== 'undefined') { var iterator = GetIterator(items, usingIterator); var values = []; var next = true; while (next) { next = IteratorStep(iterator); if (next) { var nextValue = IteratorValue(next); $arrayPush(values, nextValue); } } return values; } return ToObject(items); };