@laserware/stasis
    Preparing search index...

    Function compose

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Returns <R>(a: R) => R

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Type Parameters

      • F extends Function

      Parameters

      Returns F

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Type Parameters

      • A
      • T extends any[]
      • R

      Parameters

      • f1: (a: A) => R
      • f2: Func<T, A>

      Returns Func<T, R>

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Type Parameters

      • A
      • B
      • T extends any[]
      • R

      Parameters

      • f1: (b: B) => R
      • f2: (a: A) => B
      • f3: Func<T, A>

      Returns Func<T, R>

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Type Parameters

      • A
      • B
      • C
      • T extends any[]
      • R

      Parameters

      • f1: (c: C) => R
      • f2: (b: B) => C
      • f3: (a: A) => B
      • f4: Func<T, A>

      Returns Func<T, R>

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Type Parameters

      • R

      Parameters

      • f1: (a: any) => R
      • ...funcs: Function[]

        The functions to compose.

      Returns (...args: any[]) => R

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).

    • Composes single-argument functions from right to left. The rightmost function can take multiple arguments as it provides the signature for the resulting composite function.

      Type Parameters

      • R

      Parameters

      • ...funcs: Function[]

        The functions to compose.

      Returns (...args: any[]) => R

      A function obtained by composing the argument functions from right to left. For example, compose(f, g, h) is identical to doing (...args) => f(g(h(...args))).