source: trip-planner-front/node_modules/lodash/flowRight.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 590 bytes
Line 
1var createFlow = require('./_createFlow');
2
3/**
4 * This method is like `_.flow` except that it creates a function that
5 * invokes the given functions from right to left.
6 *
7 * @static
8 * @since 3.0.0
9 * @memberOf _
10 * @category Util
11 * @param {...(Function|Function[])} [funcs] The functions to invoke.
12 * @returns {Function} Returns the new composite function.
13 * @see _.flow
14 * @example
15 *
16 * function square(n) {
17 * return n * n;
18 * }
19 *
20 * var addSquare = _.flowRight([square, _.add]);
21 * addSquare(1, 2);
22 * // => 9
23 */
24var flowRight = createFlow(true);
25
26module.exports = flowRight;
Note: See TracBrowser for help on using the repository browser.