callbag-iterate

1.0.0 • Public • Published

callbag-iterate

A callbag puller sink which iterates through data from a pullable source. Think of it as a forEach loop for pullables.

npm install callbag-iterate

example

const fromIter = require('callbag-from-iter');
const iterate = require('callbag-iterate');
 
const source = fromIter([10,20,30,40])
 
iterate(x => console.log(x))(source); // 10
                                      // 20
                                      // 30
                                      // 40

Readme

Keywords

Package Sidebar

Install

npm i callbag-iterate

Weekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • staltz