Is it possible in one line to add a property to an added property of an added property of ...
var some_object = {};
some_object.prop_a = "hi";
some_object.prop_b.prop_c.prop_d = "ho";
while line 2 obviously works, line 3 doesnt as it returns the cannot read property of undefined
error. I know, that prop_b and prop_c dont exist when prop_d should be assigned. But is there a simple one-liner to do what i want to do (i.e. add a nested property even if some levels in the nested object dont exist yet)?