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

.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}

Hierarchy (view full)

Implements

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • map: {
          [key: string | number]: any[];
      }
      • [key: string | number]: any[]

    Returns DelAction

Properties

Accessors

  • get actor(): any
  • The function equivalent of this action.

    Returns any

Methods

  • Parameters

    • Rest ...args: any[]

    Returns void