Lodash _.fix() Method
The Lodash _.fix() method fixes the arguments to a function based on the parameter template defined by the presence of values and the _ placeholder.
The function takes a parameter that is replaced by _ in given values.
_.fix( fun, [values] )
Parameters: This method takes a single parameter as listed above and discussed below.
- fun: This parameter holds the given function.
- values: The values passed to the fun.
Return Value: It returns a new function.
Note: To execute the below examples, you have to install the lodash-contrib library by using this command prompt and execute the following command.
npm install lodash-contrib
Multiplication is : 48
Addition is : 13
Coding Platform : GeeksforGeeks