Resolves deeply-nested object properties via dot or bracket-notation for Node.js and the browser.