Deletes specified properties from different objects.
import { del } from 'deleight/object/shared'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 'deleight/object/shared'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.