Higher Order Functions

A higher order function is a function that takes one or more functions as arguments, or returns a function as its result.

Examples:

  1. Filter
  2. Map
  3. Reduce