callbag-of

2.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    6,063
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    6,063
  • 2.0.0
    1,666
  • 1.0.1
    384
  • 1.0.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i callbag-of

Weekly Downloads

2,836

Version

2.0.1

License

MIT

Unpacked Size

3.76 kB

Total Files

7

Last publish

Collaborators

  • andarist