Created
July 10, 2018 14:32
-
-
Save cristoferdomingues/4481720e7428a272d3f907f21cd6241f to your computer and use it in GitHub Desktop.
Function which creates an Array from an Object
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 arrayToObject = (obj) => Array.from(Object.keys(obj), k => obj[k]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment