@ainc/chain
Let's do something nice with @ainc/chain!
Install
$ yarn add @ainc/chain
Usage
import { Chain } from '@ainc/chain';
const chain = new Chain<number>();
chain.add((value, next) => next(value + 1));
chain.invoke(0, value => value);
Let's do something nice with @ainc/chain!
$ yarn add @ainc/chain
import { Chain } from '@ainc/chain';
const chain = new Chain<number>();
chain.add((value, next) => next(value + 1));
chain.invoke(0, value => value);
npm i @ainc/chain
0
0.1.0
MIT
17.5 kB
16