comprimento do objeto JavaScript
var size = Object.keys(myObj).length;
Crowded Caiman
var size = Object.keys(myObj).length;
var person={
"first_name":"Harry",
"last_name":"Potter",
"age":14
};
var personSize = Object.keys(person).length; //gets number of properties (3)
Object.keys(myArray).length
length(x)
length(x) <- value