Options
All
  • Public
  • Public/Protected
  • All
Menu

Module flowRight

Index

References

Functions Util

References

Renames and re-exports flowRight

Util Functions

  • flowRight(...funcs: Function[]): Function
  • This method is like flow except that it composes a function that invokes the given functions from right to left.

    since

    5.18.0

    see

    flow

    example
    function square(n) {
    return n * n
    }

    const addSquare = flowRight(square, add)
    addSquare(1, 2)
    // => 9

    Parameters

    • Rest ...funcs: Function[]

      The functions to invoke.

    Returns Function

    Returns the new composite function.