08 September 2015

CoffeeScript Polyfill for Function.prototype.bind

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.