I've been attempting something along these lines,
const myObject = {};
if(myObject){
//perform an action
}
My goal is for the condition to be false when the object is null.
I attempted using JSON.stringify(myObject) but it still contains curly braces '{}.'