O'Reilly logo
  • Patrick S thinks this is interesting:

  • _.map calls a function on every value in a collection in turn, returning a collection of the results

  • _.reduce collects a composite value from the incremental results of a function supplied with an accumulation value and each value in a collection

  • _.filter calls a predicate function (one returning a true or false value) and grabs each value where said predicate returned true, returning them in a new collection

  • From

    Cover of Functional JavaScript


    map, reduce, filter Defined