Hacker News new | ask | show | jobs
by alecperkins 5020 days 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.