callbag-merge-map

0.0.1 • Public • Published

callbag-merge-map

Callbag operator that maps to inner source, subscribe and emit in order.

Example

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
  }),
)

Readme

Keywords

Package Sidebar

Install

npm i callbag-merge-map

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

5.44 kB

Total Files

4

Last publish

Collaborators

  • jeetiss