Urara-Blog/node_modules/.pnpm-store/v3/files/72/4d89ebe20413cbb55053973382adddd5c0fd13f46ca056dc30419777df38186c5703907606898158aeac133c5cc4a6f7da559afe4101f82d37e68cb296ce0f
2022-08-14 01:14:53 +08:00

26 lines
590 B
Text

var createFlow = require('./_createFlow');
/**
* This method is like `_.flow` except that it creates a function that
* invokes the given functions from right to left.
*
* @static
* @since 3.0.0
* @memberOf _
* @category Util
* @param {...(Function|Function[])} [funcs] The functions to invoke.
* @returns {Function} Returns the new composite function.
* @see _.flow
* @example
*
* function square(n) {
* return n * n;
* }
*
* var addSquare = _.flowRight([square, _.add]);
* addSquare(1, 2);
* // => 9
*/
var flowRight = createFlow(true);
module.exports = flowRight;