Rest
...args: any[]import { call } from 'apption'
let arr1 = [1, 2, 3], arr2 = [1, 2, 3], arr3 = [1, 2, 3];
const actions = { push: [arr1, arr3], unshift: [arr2] };
call(actions, 20, 21);
console.log(arr1) // [1, 2, 3, 20, 21]
console.log(arr2) // [20, 21, 1, 2, 3]
console.log(arr3) // [1, 2, 3, 20, 21]
Calls specified methods in multiple objects.
If any array of objects (value) or object (value item) is of type Lazy, it is first resolved to obtain the object(s) to work with.