Map Use map to loop over a collection and apply the same operation to each element in the collection.

Filter Use filter to loop over a collection and return an Array containing only those elements that match an include condition.

Reduce Use reduce to combine all items in a collection to create a single new value.

Chaining You can chain methods. For example to sum only those numbers greater than or equal to seven we can first filter and then reduce

results matching ""

    No results matching ""