Lodash _.overArgs() Method
The _.overArgs() method is used to create a function that invokes func with its arguments transformed using the given transforms function.
_.overArgs(func, transforms )
Parameters: This method accepts two parameters as mentioned above and described below:
- func: This parameter holds the function to wrap.
- transforms: This parameter holds the function that specifies the argument transforms. It is an optional parameter.
Return Value: This method returns the new function.