Last active
October 17, 2020 16:25
-
-
Save hum-n/cc1d40fa6c04db68cbbff85f388d5ae1 to your computer and use it in GitHub Desktop.
Keys and values JavaScript object loop.
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
Object.entries(obj).forEach(([key, val]) => { | |
console.log(key); | |
console.log(val); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment