How to check if an object is empty in JavaScript?
Originally Published Here ๐!
To check if an object is empty, we can use the keys() method available in the global Object object and then use the length property in the array returned from the method in JavaScript.
TL;DR
// empty object
const emptyOb...
melvingeorge-me.hashnode.dev3 min read