Skip to content

👜 Callbag source factory that emits values specified as arguments.

Notifications You must be signed in to change notification settings

Andarist/callbag-of

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callbag-of

Callbag source factory that emits values specified as arguments. It's similar to fromIter, but this one creates a listenable source and does not rely on iteration protol.

Example

import observe from 'callbag-observe'
import of from 'callbag-of'
import pipe from 'callbag-pipe'

pipe(
  of(1, 2, 3, 4, 5),
  observe(value => {
    // will log 1, 2, 3, 4, 5
    console.log(value)
  }),
)

About

👜 Callbag source factory that emits values specified as arguments.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published