source: trip-planner-front/node_modules/core-js/internals/typed-array-species-constructor.js@ 8d391a1

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

initial commit

  • Property mode set to 100644
File size: 561 bytes
Line 
1var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
2var speciesConstructor = require('../internals/species-constructor');
3
4var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
5var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
6
7// a part of `TypedArraySpeciesCreate` abstract operation
8// https://tc39.es/ecma262/#typedarray-species-create
9module.exports = function (originalArray) {
10 return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR]));
11};
Note: See TracBrowser for help on using the repository browser.