pull-group-fun
v1.0.0
Published
pull-stream that groups items by return value of a user-defined function
Readme
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
