callbag-group

1.0.0 • Public • Published

Build Status

Callbag Group operator

A callbag operator that group data in chunks of a given size

Install

npm install callbag-group

Example

const iterate = require('callbag-iterate');
const range = require('callbag-range');
const group = require('callbag-group');
 
const source = range(1, 10);
const groupedSource = group(5)(source);
 
iterate((x) => {
  console.log(x);
})(groupedSource);
 
// Prints:
// [1,2,3,4,5]
// [6,7,8,9,10]

Dependents (0)

Package Sidebar

Install

npm i callbag-group

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

2.96 kB

Total Files

5

Last publish

Collaborators

  • ramiel