How to check if an ES6 Map or Set is empty?
While working with normal objects in Javascript we’re able to check if the object is empty. The same with a typical array.
We can use Object.keys() which returns an array and then we can check the length of that array.
const userObject = { name: 'Cal...
calvin.hashnode.dev1 min read