MCPcopy Index your code
hub / github.com/codrops/RainEffect / ASC

Function ASC

demo/js/main.js:112–118  ·  view source on GitHub ↗
(original, length)

Source from the content-addressed store, hash-verified

110 , SPECIES = require('./$.wks')('species');
111// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
112var ASC = function(original, length){
113 var C;
114 if(isArray(original) && isObject(C = original.constructor)){
115 C = C[SPECIES];
116 if(C === null)C = undefined;
117 } return new (C === undefined ? Array : C)(length);
118};
119module.exports = function(TYPE){
120 var IS_MAP = TYPE == 1
121 , IS_FILTER = TYPE == 2

Callers 1

main.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected