Created
February 17, 2021 19:32
-
-
Save jonathan-fielding/9ef7c263caf069e6086344329b2fe3f2 to your computer and use it in GitHub Desktop.
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
const person = { | |
name: 'Jonathan', | |
age: 21, | |
gender: 'male' | |
} | |
console.log(Object.entries(person)); | |
// Result [ [ 'name', 'Jonathan' ], [ 'age', 21 ], [ 'gender', 'male' ] ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment