JS CONTAKEYS
let count = Object.keys(myobj).length
Puzzled Pollan
let count = Object.keys(myobj).length
let count = 0;
for (let k in myobj) if (myobj.hasOwnProperty(k)) count++;
const res = [
{
count: 1,
},
{
count: 2,
},
{
count: 3,
},
];
fgvvvvbg