How to Check if Object is Empty in JavaScript
Check if Object is Empty in JavaScript
const empty = {}; Object.keys(empty).length === 0 && empty.constructor === Object // true
Check if Object is Empty in JavaScript
const empty = {}; Object.keys(empty).length === 0 && empty.constructor === Object // true