Check if Object is Empty in JavaScript
const empty = {}; Object.keys(empty).length === 0 && empty.constructor === Object // true
If you found this article helpful, consider buying us a coffee!
Deploy your apps with $200 creditSimple cloud hosting, built for developers
Find freelance services starting at $5Get your projects done by experts