We could rewrite every a == null as a === null || a === undefined, but that's quite longwinded, and this suffices to call out an edge case that most developers can remain blissfully ignorant of.
The Nullish Coalescing README does not have this problem.
See https://github.com/tc39/proposal-nullish-coalescing/issues/42#issuecomment-513439722.
We could rewrite every
a == null
asa === null || a === undefined
, but that's quite longwinded, and this suffices to call out an edge case that most developers can remain blissfully ignorant of.The Nullish Coalescing README does not have this problem.