Function compose

  • Compose functions to produce a new function.

    Type Parameters

    Parameters

    • Rest ...fns: FS
      Rest

    Returns ((...args) => ReturnType<Last<FS>>)

    The composed function will expect the parameters of the first function, and return the result of the last function.

      • (...args): ReturnType<Last<FS>>
      • Parameters

        • Rest ...args: Parameters<Head<FS>>
          Rest

        Returns ReturnType<Last<FS>>

    Params

    args functions to be composed. Each function will receive the return value of the previous function as its parameters.

Generated using TypeDoc