foo?.bar = 42;
foo == null ? undefined : foo.bar = 42;
> obj = {} {} > obj != null && (obj.bar = 42) 42 > obj { bar: 42 }
if (obj) obj.bar = 42