What is the use of Function.prototype.bind
?
bind is a method on the prototype of all functions in JavaScript. It allows you to create a new function from an existing function , change the new function’s this context, and provide any arguments you want the new function to be called with.
You can read more about it here.