https://github.com/iamcco/rxjs-operators
rxjs 操作符补完计划
https://github.com/iamcco/rxjs-operators
Last synced: 10 months ago
JSON representation
rxjs 操作符补完计划
- Host: GitHub
- URL: https://github.com/iamcco/rxjs-operators
- Owner: iamcco
- Created: 2018-07-05T15:47:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T18:01:22.000Z (about 3 years ago)
- Last Synced: 2025-03-13T16:47:42.226Z (10 months ago)
- Language: TypeScript
- Size: 1.08 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rxjs-operators 补完计划
> Too Young Too Simple, Sometimes Naive.
## operators
操作符 | 状态
------- |-----
[bufferMap](https://github.com/iamcco/rxjs-operators/tree/master/src/bufferMap) | Done
[waitMap](https://github.com/iamcco/rxjs-operators/tree/master/src/waitMap) | Done
## install
```bash
yarn add rxjs-operators
```
## usage
```javascript
import { interval, timer } from 'rxjs'
import { map } from 'rxjs/operators'
import { bufferMap } from 'rxjs-operators'
interval(1000).pipe(
bufferMap((arr) => {
console.log('map:', arr);
return timer(10000).pipe(
map(() => arr)
)
})
).subscribe(res => console.log('sub:', res))
```