check if object exist code example Example: how to check if object exists in javascript if (typeof maybeObject != "undefined") { alert("GOT THERE"); }