Apply and call allow execution of a function by reference with something explicit passed in as a value for this. If you don't use this then you don't need call or apply. Call, apply, and bind are all new with ES5. I absolutely promise you can program large elegant decomposable applications without these.
bind is new in ES5, but call and apply aren't. At least, I hope call and apply existed before ES5, or I won't know how to write that polyfill for bind.
2
u/moreteam Mar 09 '15
In the case of
call/apply: They are the only way to "simulate" argument forwarding in ES5. For example the following ES6 code:To write something similar in ES5 you need apply. Or in other words: