@hat-open/util
    Preparing search index...

    Function pipe

    • Pipe function calls

      Pipe provides functional composition with reversed order. First function may have any arity and all other functions are called with only single argument (result from previous function application).

      In case when first function is not provided, pipe returns identity function.

      Returns <T>(x: T) => T

    • Pipe function calls

      Pipe provides functional composition with reversed order. First function may have any arity and all other functions are called with only single argument (result from previous function application).

      In case when first function is not provided, pipe returns identity function.

      Type Parameters

      • TArgs extends any[]
      • TFirstResult
      • TFns

      Parameters

      Returns (...args: TArgs) => Result<TFirstResult, TFns>