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

Function createObjectToArray

lib/web/polyfill.js:1887–1899  ·  view source on GitHub ↗
(isEntries)

Source from the content-addressed store, hash-verified

1885 });
1886
1887 function createObjectToArray(isEntries){
1888 return function(object){
1889 var O = toObject(object)
1890 , keys = getKeys(object)
1891 , length = keys.length
1892 , i = 0
1893 , result = Array(length)
1894 , key;
1895 if(isEntries)while(length > i)result[i] = [key = keys[i++], O[key]];
1896 else while(length > i)result[i] = O[keys[i++]];
1897 return result;
1898 }
1899 }
1900 $define(STATIC, OBJECT, {
1901 // https://gist.github.com/WebReflection/9353781
1902 getOwnPropertyDescriptors: function(object){

Callers 1

polyfill.jsFile · 0.85

Calls 1

toObjectFunction · 0.70

Tested by

no test coverage detected