Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124747
array-from-constructor-and-list.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
292 B
Subscribers
None
array-from-constructor-and-list.js
View Options
var
lengthOfArrayLike
=
require
(
'../internals/length-of-array-like'
);
module
.
exports
=
function
(
Constructor
,
list
)
{
var
index
=
0
;
var
length
=
lengthOfArrayLike
(
list
);
var
result
=
new
Constructor
(
length
);
while
(
length
>
index
)
result
[
index
]
=
list
[
index
++
];
return
result
;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 7:29 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3363167
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment