Created
May 22, 2018 13:02
-
-
Save luislobo14rap/e53405d771924baf27844a56fbcac2de to your computer and use it in GitHub Desktop.
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
function jsonToArray(json){ | |
if( json.constructor == {}.constructor ){ | |
return [ | |
Object.keys(json), | |
Object.values(json) | |
]; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment