| 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){ |