0.0.3 • Published 7 years ago
iterable-transformers v0.0.3
iterable-transformers
Type-safe transformer functions for Iterable
and AsyncIterable
(map
, flatten
, reduce
, etc.).
This is just a start. I'm looking for contributors :-)
IxJS is supposed to solve this problem, but I wanted something I could start using today.
Installation
yarn add iterable-transformers
Transformers
transformers | Iterable | AsyncIterable |
---|---|---|
map | ✅ | ✅ |
flatten | ✅ | ✅ |
reduce | ✅ | ✅ |
toArray | ✅ | ✅ |
filter | TODO | TODO |
take | TODO | TODO |
takeWhile | ✅ | ✅ |
takeUntil | TODO | TODO |
drop | TODO | TODO |
dropWhile | TODO | TODO |
dropUntil | TODO | TODO |
Development
yarn
yarn run lint
yarn run compile
node ./target/examples/Iterable.js
node ./target/examples/AsyncIterable.js
To do
- Write tests
- Fantasy Land compatibility
0.0.4-ts-insiders.20170513
7 years ago
0.0.3
7 years ago
0.0.3-ts-insiders.20170513
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago