Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
561 bytes
|
Line | |
---|
1 | var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
---|
2 | var speciesConstructor = require('../internals/species-constructor');
|
---|
3 |
|
---|
4 | var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
---|
5 | var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
---|
6 |
|
---|
7 | // a part of `TypedArraySpeciesCreate` abstract operation
|
---|
8 | // https://tc39.es/ecma262/#typedarray-species-create
|
---|
9 | module.exports = function (originalArray) {
|
---|
10 | return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR]));
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.