154
Trying to understand JSON…
(sopuli.xyz)
Post funny things about programming here! (Or just rant about your favourite programming language.)
To be fair, just because
obj.foo
is undefined, that doesn’t mean the key is missing. It could also be assigned the value undefined.const obj = { foo: undefined }
vsconst obj = {}