1.0.0 • Published 6 years ago
pull-group-fun v1.0.0
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
1.0.0
6 years ago