.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / typed-array-from-species-and-list.js
1 var aTypedArrayConstructor = require('../internals/array-buffer-view-core').aTypedArrayConstructor;
2 var speciesConstructor = require('../internals/species-constructor');
3
4 module.exports = function (instance, list) {
5   var C = speciesConstructor(instance, instance.constructor);
6   var index = 0;
7   var length = list.length;
8   var result = new (aTypedArrayConstructor(C))(length);
9   while (length > index) result[index] = list[index++];
10   return result;
11 };