Created
June 27, 2019 20:53
-
-
Save gchacaltana/a2440c1d25978b4f19d028ccec1765a4 to your computer and use it in GitHub Desktop.
Object.entries()
This file contains hidden or 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
let twitter = { | |
name: "Gonzalo Chacaltana", | |
location: "Perú", | |
account: "@gchacaltanab" | |
}; | |
console.log(Object.entries(twitter)); | |
/* Expected Output | |
[ | |
["name", "Gonzalo Chacaltana"], | |
["location", "Perú"], | |
["account", "@gchacaltanab"] | |
] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment