⬅️ JavaScript 🔗 Stack Overflow
The usual way to check if the value of a property is the special value undefined
, is:
To check if an object does not actually have such a property, and will therefore return undefined
by default when you try to access it:
To check if the value associated with an identifier is the special value undefined
, or if that identifier has not been declared: