callbag-merge-with

1.0.3 • Public • Published

callbag-merge-with

Callbag operator version of callback-merge. Useful for example when you want to merge the current source with other(s) in the middle of a pipe.

npm install callbag-merge-with

example

const fromEvent = require('callbag-from-event');
const pipe = require('callbag-pipe');
const filter = require('callbag-filter');
const mergeWith = require('callbag-merge-with');
const mapTo = require('callbag-map-to');

const submitActions = pipe(
  fromEvent(inputNode, 'keyup'),
  filter(e => e.key === 'Enter'),
  mergeWith(fromEvent(submitBtn, 'click')),
  mapTo({type: 'submit'})
);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i callbag-merge-with

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.17 kB

Total Files

5

Last publish

Collaborators

  • krawaller