• 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

    • D

    Parameters

    • fallback: D

    Returns (<A, B, C>(fns) => ((x) => D))

      • <A, B, C>(fns): ((x) => D)
      • Type Parameters

        • A

        • B

        • C

        Parameters

        Returns ((x) => D)

          • (x): D
          • Parameters

            • x: A

            Returns D

    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