Created
October 31, 2023 11:45
-
-
Save camjocotem/69bf17a17e3bd30382292b270c3df80e to your computer and use it in GitHub Desktop.
Javascript Object dictionary
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
| Object.dictionary = function(obj){ | |
| return Object.entries(obj).map(entry => { | |
| return { | |
| key: entry[0], | |
| value: entry[1] | |
| } | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment