1 min readMay 22, 2020
I disagree with everything except comparing booleans explicitly. In JavaScript, a value can be truthy just by not being null or undefined. I prefer to be explicit and test if something is either true, or something is null or something is undefined. This way the reader doesn't have to interpret my intention.