• Compose an array of exactly 3 functions from top to bottom (left to right).

    Returns the fallback if x is null or undefined.

    Type Parameters

    • R3

    Parameters

    • fallback: R3

    Returns (<T, R1, R2>(fns) => ((x) => R3))

      • <T, R1, R2>(fns): ((x) => R3)
      • Type Parameters

        • T

        • R1

        • R2

        Parameters

        Returns ((x) => R3)

          • (x): R3
          • Parameters

            • x: T

            Returns R3

    See

    pipe2, pipe4

    Example

    pipe3(['fallback'])([x => x / 2, y => y.toString(), z => [z, z]])(42)
    // => ["21", "21"]

    pipe3(['fallback'])([x => x / 2, y => y.toString(), z => [z, z]])(undefined)
    // => ["fallback"]

Generated using TypeDoc