UNPKG

js2coffee

Version:

JavaScript to CoffeeScript compiler

10 lines (9 loc) 243 B
notes: """ Global variables are not supported in CoffeeScript. To work around this, Js2coffee (reluctantly) wraps the assignment in backticks as a hack. """ ---- if (typeof a === 'string') { a = 2; } ---- if typeof a == 'string' `a = 2`