How to check if a variable is of type object in JavaScript?
Originally Published Here ๐!
To check if a variable is an object, you can use the typeof operator followed by the variable and we also need to check if the variable is not null value because null is of type object in JavaScript.
// Check if variable...
melvingeorge-me.hashnode.dev1 min read