Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/staltz/callbag-iterate
👜 Callbag puller sink that iterates over a pullable source
https://github.com/staltz/callbag-iterate
Last synced: 16 days ago
JSON representation
👜 Callbag puller sink that iterates over a pullable source
- Host: GitHub
- URL: https://github.com/staltz/callbag-iterate
- Owner: staltz
- License: mit
- Archived: true
- Created: 2018-01-23T21:28:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-02T09:11:45.000Z (almost 4 years ago)
- Last Synced: 2024-09-21T07:41:26.092Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-callbags - iterate
README
# callbag-iterate
**DEPRECATED IN FAVOR OF [callbag-for-each](https://github.com/staltz/callbag-for-each)**
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
```js
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
```