Mastering JavaScript’s Function.prototype.bind and its applications


The bind function allows you to set the context with which a function will execute. It takes in a 'context' object and returns a new function which has its context set to the passed in object. T