Implement myEntries(obj)
Write myEntries(obj) that returns an array of [key, value] pairs for the object's own enumerable properties.
myEntries({ a: 1, b: 2 }); // [["a", 1], ["b", 2]]myEntries(obj)Write myEntries(obj) that returns an array of [key, value] pairs for the object's own enumerable properties.
myEntries({ a: 1, b: 2 }); // [["a", 1], ["b", 2]]Run your code to see results.
Stuck? This challenge exercises: