Panjang objek data JS

Object.keys(MyVar).length
Borma