pull-group-fun

1.0.0 • Public • Published

pull-group-fun

Like pull-group, but instead of producing fixed-sized arrays, you provide a function that determines how items are grouped.

var Group = require('pull-group-fun')
pull(
  pull.values(['foo', bar', 'scuttlebutt', 'baz'']), 
  Group(x => x.length),
  pull.log() // ['foo', 'bar'], ['scuttlebutt'], ['baz']
)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i pull-group-fun

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.42 kB

Total Files

6

Last publish

Collaborators

  • regular