Is there an easy way to automatically add properties to objects if they don\'t allready exist?
Consider the following example:
var test = {} test.hel
var test = {} if(!test.hasOwnProperty('hello')) { test.hello = {}; } test.hello.world = "Hello World!"