Created
June 12, 2019 19:47
-
-
Save Juandresyn/b6b5cabc4a705003b440c6d65e1e810f 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
const objectToArray = (obj) => { | |
const tempArray = []; | |
Object.keys(obj).forEach((i) => tempArray.push(obj[i])); | |
return tempArray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment