1.0.0 • Published 6 years ago

callbag-group v1.0.0

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

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]
1.0.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago