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.