Closed stolsky closed 2 years ago
add checks while traversing object paths
if (hasProperty(obj, prop)) { obj = obj[prop]; }