Lodash _.bound() Method
The Lodash _.bound() method returns function which is a property of an object by name, bound to the object made.
_.bound( obj, function);
Parameters: This method accepts two parameters as listed above and discussed below.
- obj: the object in which the function is defined.
- function: a function defined containing the returning logic.
Return Value: This method returns a 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
GeeksforGeeks: Computer science portal for geeks
1 and 2