A wrapper around del to store the map. The map can be an instance of Lazy so that it is computed every time DelAction#act is called.
.import { DelAction } from 'apption'let obj1 = { a: 1, b: 2, c: 3 }, obj2 = { a: 1, b: 2, c: 3 };const action = new DelAction({ a: [obj1], b: [obj2], c: [obj1] });action.act();console.log(obj1); // { b: 2 }console.log(obj2); // { a: 1, c: 3} Copy
.import { DelAction } from 'apption'let obj1 = { a: 1, b: 2, c: 3 }, obj2 = { a: 1, b: 2, c: 3 };const action = new DelAction({ a: [obj1], b: [obj2], c: [obj1] });action.act();console.log(obj1); // { b: 2 }console.log(obj2); // { a: 1, c: 3}
The function equivalent of this action.
Rest
A wrapper around del to store the map. The map can be an instance of Lazy so that it is computed every time DelAction#act is called.
Example