Hacker News new | ask | show | jobs
by gwwar 4657 days ago
You can use Function.prototype.bind instead of creating a closure. Check out the examples here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...