* lint fix * switch inside do expression * review comments * review comments * make min diff * adding more test * review changes * review changes * handle block statement and added more test cases * fix implementation and add more test cases * fix last swtich case * disable block fallthrough case * fix nitpick reviews
17 lines
185 B
JavaScript
17 lines
185 B
JavaScript
const x = n => function () {
|
|
switch (n) {
|
|
case 0:
|
|
return 'a';
|
|
'b';
|
|
'c';
|
|
break;
|
|
'd';
|
|
|
|
case 6:
|
|
'e';
|
|
|
|
default:
|
|
return 'f';
|
|
}
|
|
}();
|