UNPKG

js2coffee

Version:

JavaScript to CoffeeScript compiler

43 lines (40 loc) 498 B
---- function noReturn() { f(); } function noReturnIf1() { if (condition) { doSomething(); return 1; } else { doSomethingElse(); } } function noReturnIf2() { if (condition) { doSomething(); } else { doSomethingElse(); return 2; } } ---- noReturn = -> f() return noReturnIf1 = -> if condition doSomething() 1 else doSomethingElse() return noReturnIf2 = -> if condition doSomething() else doSomethingElse() 2 return