Deletes specified properties from different objects. If an object or array of objects is Lazy, it will be called with the key first to obtain the real values to work with.
.import { del } from 'apption'let obj1 = { a: 1, b: 2, c: 3 }, obj2 = { a: 1, b: 2, c: 3 };del({ a: [obj1], b: [obj2], c: [obj1] });console.log(obj1); // { b: 2 }console.log(obj2); // { a: 1, c: 3} Copy
.import { del } from 'apption'let obj1 = { a: 1, b: 2, c: 3 }, obj2 = { a: 1, b: 2, c: 3 };del({ a: [obj1], b: [obj2], c: [obj1] });console.log(obj1); // { b: 2 }console.log(obj2); // { a: 1, c: 3}
Deletes specified properties from different objects. If an object or array of objects is Lazy, it will be called with the key first to obtain the real values to work with.