Returns the property value if property name is present on the given object
the object to inspect
Optional
the property name to inspect, parent property and child property are concat with dot (.)
the property value if property name is present on the given object
getProp({foo: {bar: 'foobar'}}, 'foo.bar'); // foobar Copy
getProp({foo: {bar: 'foobar'}}, 'foo.bar'); // foobar
Returns the property value if property name is present on the given object