_.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
[funcs]
(…(Function|Function[])): The functions to invoke.
Returns
(Function): Returns the new composite function.
Example
function square(n) {return n * n;}var addSquare = _.flowRight([square, _.add]);addSquare(1, 2);// => 9
当前内容版权归 lodash.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 lodash.com .