js get length of a object code example
Example 1: javascript object length
var size = Object.keys(myObj).length;
Example 2: can we find lenght of an object
Object.keys(myArray).length
var size = Object.keys(myObj).length;
Object.keys(myArray).length