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
var a = [{ "name" : "sEcho", "value" : 1},{ "name" : "iColumns", "value" : 12} ]; var o = {}; _.each(a, function(e) { o[e.name] = e.value; }); console.log(o); // Object {sEcho: 1, iColumns: 12}