Lodash _.flow() Method
The _.flow() method is used to generate a new composite function that returns the result of invoking the provided functions with the this binding of the function generated. Each of the successive invocations is provided the return value of the previous.
_.flow( funcs )
Parameters: This method accepts a single parameter as mentioned above and described below:
- funcs: This parameter holds the functions that are to be invoked. It is an optional parameter.
Return Value: This method returns the new composite function.