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

Drops consecutive duplicate values — dedupBy with identity.

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

Return Type