1var createFlow = require('../internal/createFlow'); 2 3/** 4 * This method is like `_.flow` except that it creates a function that 5 * invokes the provided functions from right to left. 6 * 7 * @static 8 * @memberOf _ 9 * @alias backflow, compose 10 * @category Function 11 * @param {...Function} [funcs] Functions to invoke. 12 * @returns {Function} Returns the new function. 13 * @example 14 * 15 * function square(n) { 16 * return n * n; 17 * } 18 * 19 * var addSquare = _.flowRight(square, _.add); 20 * addSquare(1, 2); 21 * // => 9 22 */ 23var flowRight = createFlow(true); 24 25module.exports = flowRight; 26 27