if (something && somethingElse === true) {
someProp = true;
} else {
someProp = false;
}

Yup, these exist in the wild.

Follow

This exact pattern is repeated three times in the same file.

Sign in to participate in the conversation
Octodon

Octodon is a nice general purpose instance. more