84194f29c4ebe16d60d9dee263adcba0e429ab5c
[yaffs-website] / node_modules / uncss / node_modules / lodash / flowRight.js
1 var 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  * @category Util
10  * @param {...(Function|Function[])} [funcs] Functions to invoke.
11  * @returns {Function} Returns the new function.
12  * @example
13  *
14  * function square(n) {
15  *   return n * n;
16  * }
17  *
18  * var addSquare = _.flowRight(square, _.add);
19  * addSquare(1, 2);
20  * // => 9
21  */
22 var flowRight = createFlow(true);
23
24 module.exports = flowRight;