UNPKG

sflow

Version:

sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil

6 lines (5 loc) 311 B
import type { Awaitable } from "./Awaitable"; /** uniq by a new Set(), note: use === to compare */ export declare const uniqs: <T>() => TransformStream<T, T>; /** uniq by a new Map(), Note: use === to compare keys */ export declare const uniqBys: <T, K>(keyFn: (x: T) => Awaitable<K>) => TransformStream<T, T>;