1fde2a37f03517ccd92c16517e1c011c1501720d1c017ee00eb21b817f91795e18c7454f86fc9cd64f99510d01d026b8b7f9a8349a4a70a06167231d6c2738 588 B

1234567891011121314151617181920212223242526
  1. import createFlow from './_createFlow.js';
  2. /**
  3. * This method is like `_.flow` except that it creates a function that
  4. * invokes the given functions from right to left.
  5. *
  6. * @static
  7. * @since 3.0.0
  8. * @memberOf _
  9. * @category Util
  10. * @param {...(Function|Function[])} [funcs] The functions to invoke.
  11. * @returns {Function} Returns the new composite function.
  12. * @see _.flow
  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. */
  23. var flowRight = createFlow(true);
  24. export default flowRight;