source:
trip-planner-front/node_modules/core-js/internals/array-from-constructor-and-list.js@
bdd6491
Last change on this file since bdd6491 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 209 bytes |
Line | |
---|---|
1 | module.exports = function (Constructor, list) { |
2 | var index = 0; |
3 | var length = list.length; |
4 | var result = new Constructor(length); |
5 | while (length > index) result[index] = list[index++]; |
6 | return result; |
7 | }; |
Note:
See TracBrowser
for help on using the repository browser.