I\'ve been going through the underscore docs but I can\'t seem to find a method (or nested method call) to do the following transformation:
Let\'s say I have the followi
Variation on Sza's answer, using the "array of pairs" signature of _.object:
_.object
_.object(_.map(data, function(x){return [x.name, x.value]}))