Created
October 15, 2018 16:27
-
-
Save msteckyefantis/37df5f68180a3ae30efd42ca841123f8 to your computer and use it in GitHub Desktop.
object looping
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 object = { x: 2, y: 'yo' }; | |
const keys = Object.keys( object ); | |
keys.forEach( key => { | |
const value = object[ key ]; | |
publishValue( value ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment