Przejdź do głównej zawartości
const object = {}
if (object) {
object.property = "value"
}

console.log(object)