UNPKG
js2coffee
Version:
latest (2.2.0)
2.2.0
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
JavaScript to CoffeeScript compiler
js2.coffee
js2coffee/js2coffee
js2coffee
/
specs
/
legacy_pending
/
if_return.txt
21 lines
(20 loc)
•
222 B
Plain Text
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
----
function
bar
()
{
if
(
1
)
return
1
; }
function
foo
()
{
if
(
1
) {
return
1
; } }
function
baz
()
{
if
(
1
)
return
2
;
else
return
1
; }
----
bar = ->
1
if
1
foo = ->
1
if
1
baz = ->
if
1
2
else
1