Created
August 2, 2017 19:07
-
-
Save bmorelli25/614c087e4410def3c2ad03f58ea0c24d to your computer and use it in GitHub Desktop.
Object.entries() + padEnd() example
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
| const data = { | |
| Portland: '78/50', | |
| Dublin: '88/52', | |
| Lima: '58/40' | |
| } | |
| Object.entries(data).map(([city, temp]) => { | |
| console.log(`City: ${city} Weather: ${temp}`) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment