Skip to content

ramiel/callbag-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

👜 Callbag operator that groups data in chunks

Resources

License

Stars

Watchers

Forks

Packages

No packages published