The _.bind() function is used to bind a function to an object. When the function is called, the value of this will be the object.
_.bind(function, object, *arguments)
Parameters: This function accepts three parameters as mentioned above and described below:
- function: This parameter holds the function that need to be executed.
- object: This parameter holds the object elements.
- arguments: This parameter needs to add some symbols between the elements.
Return Value: It returns the value that bind a function to an object.
- AngularJS | angular.bind() Function
- jQuery | bind() with Examples
- AngularJS | ng-bind Directive
- AngularJS | ng-bind-html Directive
- AngularJS | ng-bind-template Directive
- Difference between on() and live() or bind() in jQuery
- How to bind an array to an IN() condition in PHP ?
- v-bind Directive in Vue.js
- Node.js socket.bind() Method
- Lodash _.bind() Method
- How to bind 'this' keyword to resolve classical error message 'state of undefined' in React?
- Google AMP amp-bind-recaptcha
- How to calculate area of circle dynamically using amp-bind-macro in Google AMP ?
- What is Initialize state in amp-bind of Google AMP ?
- How to change/update image size dynamically using amp-bind in Google AMP ?
- How to change/update CSS class dynamically using amp-bind in Google AMP ?
- Google AMP amp-bind
- How to change/update text dynamically using amp-bind in Google AMP ?
- How to change/update image dynamically using amp-bind in Google AMP ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.