UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

15 lines (14 loc) 295 B
/** * Puts the current value and previous value together as an array, and queues that. * * @group Transformers * @example * ``` * --a----b------c------d------ * * pairwise() * * -------[a,b]--[b,c]--[c,d]-- * ``` */ export declare function pairwise<T>(): TransformStream<T, [T, T]>;