Underscore.js _.rCurry() Method
The Underscore.js _.rCurry() method returns a curried version of the given function where arguments are processed from right to left.
_.rCurry( fun )
Parameters: This method takes a single parameter as listed above and discussed below:
- fun: This is the given function passed as parameter.
Return Value: This method returns a curried function.
Note: To execute the below examples, you have to install the underscore-contrib library by using this command prompt and execute the following command.
npm install underscore-contrib
Curried division is : 2
Curried Subtraction is : 22
Example 3: Arguments are reversed as shown below:
a=c and b=b and c=a