Forked from kovaldn/Javascript: parse object to array (underscore).js
Created
September 28, 2018 15:23
-
-
Save anelad/0505d76bf0834c0caab3041fd8c5b945 to your computer and use it in GitHub Desktop.
Javascript: parse object to array (underscore)
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
/* | |
* Underscore | |
* Parse object to array | |
*/ | |
_(obj).each(function(elem, key){ | |
// console.log(elem); | |
// console.log(key); | |
obj[key] = _(elem).values(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment