Closed guigaoliveira closed 4 years ago
delete undefined
is false
because it's an attempt to delete the global property called "undefined"
; delete void 0
, which attempts to delete the value undefined
, is true
.
When a
is nullish, delete a?.b
applies the delete
operator to the value undefined
, hence it's true
.
Got it, thanks!
In the readme we have to
but we know that
shouldn't it be like this?