Lodash _.bind() Method
The Lodash _.bind() method is used to create a function that will invoke the given function with the this binding of thisArg and it is used to bind a function to an object. When the function is called, the value of this will be the object. The _.bind.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for partially applied arguments.
_.bind(func, thisArg, partials)
Parameter: This method accepts three parameters as mentioned above and described below:
- func: This parameter holds the function that will bind.
- thisArg: This parameter holds the object elements.
- partials: This parameter needs to add some symbols between the elements.
Return value: This method returns a new bound function.
The below example illustrates the Lodash _.bind() method:
Company Name : GeeksforGeeks Address : Noida Contact : +91 9876543210
Welcome to GeeksforGeeks Address: Noida