The Expressiveness of CoffeeScript

Some time ago I wrote a simple JavaScript function (_properties) to report the non-function properties of a JavaScript object.

the same function, rewritten in CoffeeScript, is:

It is shorter (down from 9 lines to 2) and easier to read.


Comments

Comments are closed