The _.flip2() method returns a function that works identically to given function but accepts the first two arguments in reverse order. The order of all rest arguments remains the same.
_.flip2( function );
Parameters: This method takes a function that takes some arguments.
Return Value: This method returns a function.
underscore.js contrib library can be installed using npm install underscore-contrib –save.
Value of a is 2 and Value of b is 1 and Value of c is 3
GeeksforGeeks is Computer Science Portal for Geeks