get/set/remove/has for any object using dot-notation path with reasonable defaults.
set (obj, path, val)
Set
valatpathofobj. Will create last entry of path if it does not exist.
get (obj, path)
Get
valatpathofobj. Will return undefined for a nonexistent path.
has (obj, path)
Check if
objhas avalatpath. Will return false for a nonexistent path.
remove (obj, path)
Remove
valatpathofobj. Will do nothing for a nonexistent path.
obj is the Object, path is the dot-notation path to a property, and val is the value to set for the property.