Contact: aviboots(AT)netvision.net.il
31,037 questions
40,897 answers
573 users
const theobject = {}; const theobjectEmpty = Object.keys(theobject).length === 0; console.log(theobjectEmpty); /* run: true */
const theobject = {}; const theobjectEmpty = Object.entries(theobject).length === 0 && theobject.constructor === Object; console.log(theobjectEmpty); /* run: true */