An object returned from a function (or Action.act implementation) which specifies our intent to replace the propagated arguments with the new arguments list it is initialized with. This allows the act function to behave like a pipe operator if we require such. This is more limited than passing the same argument list to all the functions, but may perhaps be desired for some reason.

Example

import { act, Args } from 'apption'
let count = 0;
act([
(a1, a2) => count += a1,
(a1, a2) => new Args([a2, 0]),
(a1, a2) => count += a2 + 5
], 20, 21);
console.log(count); // 25

Constructors

Properties

Constructors

  • Parameters

    • value: any[]

    Returns Args

Properties

value: any[]