source: trip-planner-front/node_modules/core-js/internals/array-from-constructor-and-list.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 209 bytes
Line 
1module.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.