Returns an array of key/values of the enumerable properties of an object
0.9.7
objEntries({ Hello: "Darkness", my: "old", friend: "." });// [ [ "Hello", "Darkness" ], [ "my", "old"], [ "friend", "." ] ]// Array-like objectobjEntries({ 0: "a", 1: "b", 2: "c" }));// [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ]// Array-like object with random key orderingobjEntries({ 100: "a", 2: "b", 7: "c" });// [ ['2', 'b'], ['7', 'c'], ['100', 'a'] ]* Copy
objEntries({ Hello: "Darkness", my: "old", friend: "." });// [ [ "Hello", "Darkness" ], [ "my", "old"], [ "friend", "." ] ]// Array-like objectobjEntries({ 0: "a", 1: "b", 2: "c" }));// [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ]// Array-like object with random key orderingobjEntries({ 100: "a", 2: "b", 7: "c" });// [ ['2', 'b'], ['7', 'c'], ['100', 'a'] ]*
Object that contains the properties and methods.
Returns an array of key/values of the enumerable properties of an object
Since
0.9.7
Example