tc39 / proposal-optional-chaining

https://tc39.github.io/proposal-optional-chaining/
4.94k stars 75 forks source link

README should be clear with respect to document.all. #104

Closed rkirsling closed 4 years ago

rkirsling commented 4 years ago

See https://github.com/tc39/proposal-nullish-coalescing/issues/42#issuecomment-513439722.

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.