Function compose

Compose multiple functions together to create a new function that applies the given functions from right to left. If no functions are given, the composed function will simply return the input argument. If only one function is given, the composed function will simply return the output of that function.

  • Parameters

    • Rest...funcs: Function[]

      The functions to be composed.

    Returns Function

    • The composed function.