Function over

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

    Parameters

    • Rest ...iteratees: Function[]

      The iteratees to invoke.

      Rest

    Returns OverFunction

    Returns the new function.

    Since

    5.11.0

    Example

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

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