* 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
11 lines
160 B
JavaScript
11 lines
160 B
JavaScript
const x = () => function () {
|
|
switch (new Date().getDay()) {
|
|
case 0:
|
|
get();
|
|
return 1 + 1;
|
|
|
|
default:
|
|
return "weekday 🚴";
|
|
}
|
|
}();
|