Function over

  • Creates a function that invokes iteratees with the arguments it receives and returns their results.

    Type Parameters

    • T
    • R

    Parameters

    • Optionaliteratees: Iteratee<T, R>[]

      The iteratees to invoke.

    Returns Iteratee<T, R[]>

    Returns the new function.

    4.0.0

    const func = over([Math.max, Math.min])

    func(1, 2, 3, 4)
    // => [4, 1]