Re:Ask HN: What is your favorite Javascript code snippet?
by jashkenas on Tuesday June 29, 2010 @10:39PM
(#1473688)
I'm partial to keeping a "bind" function handy. (Function#bind will be in ECMAScript 5, but it's not quite here yet). It's crucial for keeping your sanity when trying to use "this" with callbacks, Ajax, or async.
[ Parent
| on HN ]
There are no comments on this comment yet.