Skip to content

Andarist/callbag-start-with

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callbag-start-with

Callbag operator that seeds a source with an initial data output. It works for both listenable and pullable sources.

npm install callbag-start-with

Every argument passed in will be emitted to the sink individually, so doing...

startWith(1,2,3)(source)

...will make the source emit 1, then 2, then 3 before the "actual" emits.

example

const merge = require('callbag-merge');
const pipe = require('callbag-pipe');
const startWith = require('callbag-start-with');

const actionStream = pipe(
  merge(submitActions, editActions, someOtherActions, .... ),
  startWith({type: "INIT"})
);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%