-
-
Save ilearnjavascript/0e46a0633268b613ff3955261f710a9d to your computer and use it in GitHub Desktop.
es6 - new methods - 17.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj = { foo: 'bar', baz: 42 }; | |
console.log(Object.entries(obj)); | |
// outputs: | |
// (2) [Array(2), Array(2)] | |
// 0: (2) ["foo", "bar"] | |
// 1: (2) ["baz", 42] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment