js2coffee
Version:
JavaScript to CoffeeScript compiler
21 lines (20 loc) • 349 B
Plain Text
notes: """
CoffeeScript doesn't support adding `when` clauses that are empty, as you
probably would in JavaScript. Js2coffee will consolidate empty `case` clauses
together to make things more readable.
"""
----
switch (a) {
case one:
case two:
b();
break;
default:
c();
}
----
switch a
when one, two
b()
else
c()