CoffeeScript Polyfill for
Function.prototype.bind
https://clarkfeusier.com/wp-content/themes/crocal/images/empty/thumbnail.jpg
150
150
Clark
https://secure.gravatar.com/avatar/e5333fb3c1def594495ace9f5f83d3ba0d92145d93b4afad5a92e584f633ffad?s=96&d=mm&r=r
Recently, I needed to polyfill Function.prototype.bind to use with PhantomJS. The project I was working on was written in CoffeeScript, so I rewrote the MDN Function.prototype.bind JavaScript polyfill in CoffeeScript. To use the polyfill, just add the above snippet wherever needed.
read more