Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
313 bytes
|
Line | |
---|
1 | var arraySpeciesConstructor = require('../internals/array-species-constructor');
|
---|
2 |
|
---|
3 | // `ArraySpeciesCreate` abstract operation
|
---|
4 | // https://tc39.es/ecma262/#sec-arrayspeciescreate
|
---|
5 | module.exports = function (originalArray, length) {
|
---|
6 | return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
---|
7 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.