util.unsetByPath(object, path, delim)
Unset (delete) a property at the path
in a nested object
. delim
is the
delimiter used in the path
. Returns the augmented object
.
joint.util.unsetByPath({ a: { aa: { aaa: 3 } } }, 'a/aa/aaa', '/');
// { a: { aa: {} } }