mirror of https://github.com/jkjoy/sunpeiwen.git
7 lines
223 B
JavaScript
7 lines
223 B
JavaScript
|
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
|
||
|
var speciesConstructor = require('./_array-species-constructor');
|
||
|
|
||
|
module.exports = function (original, length) {
|
||
|
return new (speciesConstructor(original))(length);
|
||
|
};
|