JS obj obtient le compte de propriétés
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;
Red Necked Wallaby
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;