Creates a chain with functions.
const chained = chain({ count: 1, increase(count: number) { this.count += count }, decrease(count: number) { this.count -= count } }); chained.increase(2).decrease(1);
// => 2
Generated using TypeDoc
Creates a chain with functions.
const chained = chain({ count: 1, increase(count: number) { this.count += count }, decrease(count: number) { this.count -= count } }); chained.increase(2).decrease(1);
// => 2