4.17.11
3.10.1
2.4.2
1.3.1

_.flowRight([funcs])

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

Since

3.0.0

Arguments

argument
[funcs]
type
...(Function|Function[])
description
The functions to invoke.

Returns

(array)

Example

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

var addSquare = _.flowRight([
  square,
  _.add,
]);
addSquare(1, 2);
// => 9
function square(n) {
  return n * n;
}

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