Function pipe

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B

    Parameters

    • value: A
    • fn1: (value: A) => B

    Returns B

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B
    • C

    Parameters

    • value: A
    • fn1: (value: A) => B
    • fn2: (value: B) => C

    Returns C

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B
    • C
    • D

    Parameters

    • value: A
    • fn1: (value: A) => B
    • fn2: (value: B) => C
    • fn3: (value: C) => D

    Returns D

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B
    • C
    • D
    • E

    Parameters

    • value: A
    • fn1: (value: A) => B
    • fn2: (value: B) => C
    • fn3: (value: C) => D
    • fn4: (value: D) => E

    Returns E

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B
    • C
    • D
    • E
    • F

    Parameters

    • value: A
    • fn1: (value: A) => B
    • fn2: (value: B) => C
    • fn3: (value: C) => D
    • fn4: (value: D) => E
    • fn5: (value: E) => F

    Returns F

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B
    • C
    • D
    • E
    • F
    • G

    Parameters

    • value: A
    • fn1: (value: A) => B
    • fn2: (value: B) => C
    • fn3: (value: C) => D
    • fn4: (value: D) => E
    • fn5: (value: E) => F
    • fn6: (value: F) => G

    Returns G

  • Pipe value through several functions with each having the result of the last one being passed to the next as its input.

    Type Parameters

    • A
    • B
    • C
    • D
    • E
    • F
    • G
    • H

    Parameters

    • value: A
    • fn1: (value: A) => B
    • fn2: (value: B) => C
    • fn3: (value: C) => D
    • fn4: (value: D) => E
    • fn5: (value: E) => F
    • fn6: (value: F) => G
    • fn7: (value: G) => H

    Returns H