coffeescript

CoffeeScript Polyfill for Function.prototype.bind

CoffeeScript Polyfill for Function.prototype.bind 150 150 Clark

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