method StreamClass.prototype.uniq
Private
StreamClass.prototype.uniq(): StreamClass<T, E>

Keeps the first occurrence of each value — uniqBy with identity.

await Stream.from([1, 2, 1, 2, 3]).uniq().collect(); // [1, 2, 3]

Return Type

Usage

import { StreamClass } from "lib/stream/stream.ts";