1.1.0 • Published 6 years ago

callbag-map-to v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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'
1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago