A colleague recently asked me how you typically write the jQuery DomReady and closure syntaxes with CoffeeScript. It’s actually quite simple but did require a bit of fiddling around to find the right recipe. So I thought I’d share this with you all just in case you’re wondering too!
Passing jQuery into a closure:
Bonus: Ternary statements
Do you have a recipe for this too? What is it?