Sets a value of a property in an object tree in Node and the browser.