jiangping
2025-07-17 5d7242bca1537a450333d00720267e206d60f182
1
2
3
4
5
6
7
8
'use strict';
var arraySpeciesConstructor = require('../internals/array-species-constructor');
 
// `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
module.exports = function (originalArray, length) {
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
};