Follow

this linter thinks

const value = (() => {
if (a) {
return val1;
} else {
return b ? val2 : val3;
}
})();

is easier to read than

const value = a ? val1 : b ? val2 : val3;

but i’m not sure i agree

· · Web · 0 · 0 · 2
Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.