MCPcopy Create free account
hub / github.com/codrops/RainEffect / createGetKeys

Function createGetKeys

demo/js/index3.js:1808–1821  ·  view source on GitHub ↗
(names, length)

Source from the content-addressed store, hash-verified

1806 return createDict();
1807};
1808var createGetKeys = function(names, length){
1809 return function(object){
1810 var O = toIObject(object)
1811 , i = 0
1812 , result = []
1813 , key;
1814 for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
1815 // Don't enum bug & hidden keys
1816 while(length > i)if(has(O, key = names[i++])){
1817 ~$indexOf(result, key) || result.push(key);
1818 }
1819 return result;
1820 };
1821};
1822var Empty = function(){};
1823$def($def.S, 'Object', {
1824 // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)

Callers 1

index3.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected