I’ve been mulling over getting this post up for a while now – simply because functions are a big deal in Javascript. Javascript functions are packed with so many properties, methods and it’s fundamental nature requires some quality time in understanding its features.
There are a few things to keep in mind when dealing with Javascripts call(), apply, and bind methods()
- call(), apply() and bind() are three methods every function has access too
- bind() creates a copy of the function object in question
- call(), apply() and bind() methods are methods that allow an object to point to a different ‘this’ variable when invoked.
- Common patterns used in conjunction with call(), apply() and bind() are function borrowing and function currying.
Continue reading “Javascript’s call, apply and bind methods”