50. - John-David Dalton
at StackOverflow
œš‘“›⁸better overall performance and
optimizations for large arrays/object
iteration, and more flexibility with
custom builds and template pre-
compilation utilities.’”⁹
http://stackoverflow.com/questions/13789618/differences-between-
lodash-and-underscore
86. function square(x) {
return x * x;
}
function inc(x) {
return x + 1;
}
function isEven(x) {
return x % 2 === 0;
}
!
var result = _.chain(array)
.map(square).map(inc)
.filter(isEven).take(5).value();
!
var result = Lazy(array)
.map(square).map(inc)
.filter(isEven).take(5);