callbag-map-to

1.1.0 • Public • Published

callbag-map-to

Callbag operator that transforms data passing to it to a fixed value.

npm install callbag-map-to

example

const fromIter = require('callbag-from-iter');
const forEach = require('callbag-for-each');
const mapTo = require('callbag-map-to');
 
const source = mapTo('foo')(fromIter([1,2,3]));
 
forEach(x => console.log(x))(source); // 'foo'
                                      // 'foo'
                                      // 'foo'

Readme

Keywords

Package Sidebar

Install

npm i callbag-map-to

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

3.57 kB

Total Files

6

Last publish

Collaborators

  • krawaller