3 ms·
I find var totals = orders.map(function(o){return o.total;}); far easier to understand than var totals = splat(get('total'))(orders); And, I would h
by aurelianito 14y ago
I find
var totals = orders.map(function(o){return o.total;});
far easier to understand than
var totals = splat(get('total'))(orders);
And, I would had written
var totals = orders.map(function(o){
return o.total
})
(note the lack of semicolons and indentation)
cheers!