ts-streams
v0.1.0
Published
A collection util can process list by some operation like flatMap distinct shuffle and reduce. Taking inspiration from java stream
Downloads
5
Maintainers
Readme
Typescript Stream
A collection util inspired by java streams
Show Case
Example
let list = ["a1","a2","a3","b4","c5"];
TsStream.from(list).filter(e=>e.startsWith("a")).map(e=>e.substring(1))
.toArray();
NPM
npm i typescript-streamTodo List
- [x] : shuffle
- [x] : reverse
- [x] : takeWhile
- [x] : dropWhile
- [ ] : more unit test
- [ ] : more async method
See Also
License
The MIT License, see LICENSE.
