3 ms·
There's still a distinction between explicitly assigned undefined, and deleted or not assigned field. So, two types of undefined in addition to null, if you wil
by Aardwolf 6y ago
There's still a distinction between explicitly assigned undefined, and deleted or not assigned field. So, two types of undefined in addition to null, if you will.
- smichel17 6y agoYes. This is annoying / I wish it weren't part of the language. It's an easy footgun, since `object.property === undefined` does not disambiguate between the two cases. Similarly, I wish `typeof null === "null"`.