diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
commit | 5f466137ad6ac596600e3ff53c9b786815398445 (patch) | |
tree | f914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/core-js/modules/$.array-species-create.js | |
parent | c9f5ac8e763eda19aa0564179300cfff76785435 (diff) |
node_modules, clean up package.json
Diffstat (limited to 'node_modules/core-js/modules/$.array-species-create.js')
-rw-r--r-- | node_modules/core-js/modules/$.array-species-create.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/node_modules/core-js/modules/$.array-species-create.js b/node_modules/core-js/modules/$.array-species-create.js deleted file mode 100644 index d809cae60..000000000 --- a/node_modules/core-js/modules/$.array-species-create.js +++ /dev/null @@ -1,16 +0,0 @@ -// 9.4.2.3 ArraySpeciesCreate(originalArray, length) -var isObject = require('./$.is-object') - , isArray = require('./$.is-array') - , SPECIES = require('./$.wks')('species'); -module.exports = function(original, length){ - var C; - if(isArray(original)){ - C = original.constructor; - // cross-realm fallback - if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined; - if(isObject(C)){ - C = C[SPECIES]; - if(C === null)C = undefined; - } - } return new (C === undefined ? Array : C)(length); -};
\ No newline at end of file |