Urara-Blog/node_modules/.pnpm-store/v3/files/7e/3830b801fd56e1945ec9399b918a2e3877e730f184ad066eab63dda787d6b46547b6122e59a66875c0c3f653ef0f4f1abde261c3f1073bc9b8046c0d8f1525
2022-08-14 01:14:53 +08:00

27 lines
666 B
Text

var createFlow = require('./_createFlow');
/**
* Creates a function that returns the result of invoking the given functions
* with the `this` binding of the created function, where each successive
* invocation is supplied the return value of the previous.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Util
* @param {...(Function|Function[])} [funcs] The functions to invoke.
* @returns {Function} Returns the new composite function.
* @see _.flowRight
* @example
*
* function square(n) {
* return n * n;
* }
*
* var addSquare = _.flow([_.add, square]);
* addSquare(1, 2);
* // => 9
*/
var flow = createFlow();
module.exports = flow;