I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object?
var size = Object.keys(myObj).length;
I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object?
var size = Object.keys(myObj).length;