Answers for "javascript check if element in object"

3

javascript check if object

typeof yourVariable === 'object' // true if it's an object or if it's NULL.

// if you want to exclude NULL
typeof yourVariable === 'object' && yourVariable !== null
Posted by: Guest on January-11-2021

Code answers related to "javascript check if element in object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language