Angular.bind vs ECMAScript 5.bind

Is there any advantage to using angular.bind instead of ECMAScript 5 Function.prototype.bind?

Is it just a pad to support older browsers, or are there some advantages?

+4
source share
1 answer

Yes, this is essentially a pad with some type checks. Function.prototype.bindis the ES5 construct, so you are looking at IE9 +, FF4 +, etc.

Here is the code

+7
source

All Articles