Hey I'm new to underscore.js and I'm trying to figure out how to perform an operation on a map. I read through the API and I'm afraid I'm missing something.
Here's what I'd like to do:
doubled = _.someFunction( { bob: 25, sally: 30, tom: 5 }
, function(value){ return value*2; }
);
Returning:
{ bob: 50, sally: 60, tom: 10 }
Any idea how to do this? Should I create a new function with _.mixin()?