forget
Remove (delete) a value in object at given path. Method is an alias for Lodash unset
.
import { forget } from "@aedart/support/objects";
const target = {
a: 1234,
b: {
c: {
age: 24
}
},
};
forget(target, 'b.c');
console.log(target); // { a: 1234, b: {} }