Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeetiss/callbag-merge-map
https://github.com/jeetiss/callbag-merge-map
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeetiss/callbag-merge-map
- Owner: jeetiss
- Created: 2018-10-18T07:15:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-21T16:22:14.000Z (about 6 years ago)
- Last Synced: 2024-10-19T22:33:29.116Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# callbag-merge-map
Callbag operator that maps to inner source, subscribe and emit in order.
## Example
```js
import mergeMap from 'callbag-merge-map'
import fromEvent from 'callbag-from-event'
import forEach from 'callbag-for-each'
import interval from 'callbag-interval'
import pipe from 'callbag-pipe'
import take from 'callbag-take'pipe(
fromEvent(document, 'click'),
mergeMap(() => pipe(interval(1000), take(4))),
forEach(value => {
// For every click on the "document" it will emit values 0 to 3 spaced
}),
)
```