Rewriting Some JavaScript to CoffeeScript
By Ryan Florence, published 2012-04-13
Features Used:
In order of appearance:
- default arguments
this
shortcut- conditional assignment
- same name key:value shortcut (I don’t know what this is called)
- unless conditional
- postfix conditional
- existential operator
- splats
- postfix loop
- destructuring assignment
Gists
You can check out the gists here
Feel free to argue here, the gist, or on hacker news, but I’m sold. (better go strikethrough that article I wrote a while back …)