main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
327 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict';
|
---|
| 2 | var arraySpeciesConstructor = require('../internals/array-species-constructor');
|
---|
| 3 |
|
---|
| 4 | // `ArraySpeciesCreate` abstract operation
|
---|
| 5 | // https://tc39.es/ecma262/#sec-arrayspeciescreate
|
---|
| 6 | module.exports = function (originalArray, length) {
|
---|
| 7 | return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
---|
| 8 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.