rxjs-operators
v1.1.3
Published
more operators, more happines
Downloads
7,329
Readme
rxjs-operators 补完计划
Too Young Too Simple, Sometimes Naive.
operators
操作符 | 状态 ------- |----- bufferMap | Done waitMap | Done
install
yarn add rxjs-operators
usage
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))