DEV Community

Discussion on: 🤔 Check if an object is empty in JS

Collapse
 
dhruvpatel profile image
Dhruv

I usually tend to check obj && Object.keys(obj) > 0 for non-empty object check

Collapse
 
verycosy profile image
Jinho Jang

Cool !