Something Cool: .bind()

added by bpwndaddy
6/12/2015 2:43:44 PM

1 Kicks, 197 Views

About a month ago, a link to this article called "How do you judge a Javascript programmer by only 5 questions?" was submitted to /r/javascript. One of the points they bring up in the article, is that people should know how to use the Function.prototype.bind function. Reading through a few comments on that thread, obviously some people didn't understand how to use it or even why you'd use it. Let me explain.