Get nested object properties using string path

Another take on a minimalistic implementation to get nested object properties by using a string path in JavaScript.