Last active
August 30, 2017 18:42
-
-
Save gemmadlou/16da1158efa686e62298949707927f3a to your computer and use it in GitHub Desktop.
Object to array
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 delimiter = ':'; | |
| Object.keys(obj).reduce((a, b) => { | |
| return obj[b] !== undefined ? a.concat(b + delimiter + obj[b]) : a; | |
| }, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.