source:
trip-planner-front/node_modules/core-js/internals/array-from-constructor-and-list.js@
ceaed42
Last change on this file since ceaed42 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 209 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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.