Is there any advantage to using angular.bind instead of ECMAScript 5's Function.prototype.bind?
Is it just a shim to support older browsers or is there some advantage?
Yes, it is essentially a shim with some typechecking. Function.prototype.bind
is an ES5 construct, so you are looking at IE9+, FF4+, etc.
Here is the code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With