flowRight

Util
since 3.0.0

Arguments

  • ...(Function|Function[]) The functions to invoke.

Returns

Function the new composite function.

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

Example of Lodash _.flowRight

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

var addSquare = _.flowRight([square, _.add]);
addSquare(1, 2);
// => 9