Q:

underscore js

var evens = _.filter([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
=> [2, 4, 6]
0
_.reduce(['x', 'y', 'z'], function(accumulator, currentItem) {
    return accumulator + currentItem;
});
// xyz
0
var stooge = {name: 'moe'};
_.propertyOf(stooge)('name');
=> 'moe'
-2

New to Communities?

Join the community