var size = Object.keys(myObj).length;
Object.keys(myArray).length
Object.size = function(obj) {
var size = 0,
key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return size;
};
// Get the size of an object
const myObj = {}
var size = Object.size(myObj);
length(x)
length(x) <- value