5 ms·
If you use anonymous functions a lot, it's amazing: result = _.map object, (val, key) -> foo(val) is much cleaner than var result =
by alecperkins 14y ago
If you use anonymous functions a lot, it's amazing:
result = _.map object, (val, key) ->
foo(val)
is much cleaner than
var result = _.map(object, function(val, key) {
return foo(val)
});
I think.