NewDash

    Function flowRight

    • This method is like flow except that it composes a function that invokes the given functions from right to left.

      Parameters

      • ...funcs: Function[]

        The functions to invoke.

      Returns Function

      Returns the new composite function.

      5.18.0

      flow

      function square(n) {
      return n * n
      }

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