I have a Javascript object and want to know the length of it. Is there any built-in function or something to do this?
const myObject = new Object();
myObject["firstname"] = "Gareth";
myObject["lastname"] = "Simpson";
myObject["age"] = 21;
Any help would be appreciated.