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/9e2a3b76bf5d8feb63267ecc12fecc61?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