MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / setArrayStatics

Function setArrayStatics

lib/web/polyfill.js:1956–1960  ·  view source on GitHub ↗
(keys, length)

Source from the content-addressed store, hash-verified

1954// JavaScript 1.6 / Strawman array statics shim
1955!function(arrayStatics){
1956 function setArrayStatics(keys, length){
1957 forEach.call(array(keys), function(key){
1958 if(key in ArrayProto)arrayStatics[key] = ctx(call, ArrayProto[key], length);
1959 });
1960 }
1961 setArrayStatics('pop,reverse,shift,keys,values,entries', 1);
1962 setArrayStatics('indexOf,every,some,forEach,map,filter,find,findIndex,includes', 3);
1963 setArrayStatics('join,slice,concat,push,splice,unshift,sort,lastIndexOf,' +

Callers 1

polyfill.jsFile · 0.85

Calls 3

arrayFunction · 0.85
ctxFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected