1.0.0 • Published 7 years ago
pull-map-last v1.0.0
pull-map-last
Like pull-stream/throughs/map except also takes a function to be called when the source ends.
Used to create streams that map 1:1 with input, but also need a special case for the end of the stream.
Example
pull(
source...,
MapLast(function each (data) {
return the transformed item...
}, function () {
return last item...
}),
...sink
)
License
MIT
1.0.0
7 years ago