Last active
March 20, 2018 04:22
-
-
Save funnythingz/6397818a28d6106714951849233777a9 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
var a = [ | |
['Work', 11], | |
['Eat', 2], | |
['Commute', 2], | |
['Watch TV', 2] | |
]; | |
_.map(a, function(o) { | |
return { | |
c:[ | |
{v: o[0]}, | |
{v: o[1]} | |
] | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment