Skip to content

krawaller/callbag-merge-with

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'})
);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •