BACK
Reference · 79

min

Finds the minimum value of a finite stream.

Signature

min(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction

What it does

Compares the values and, after complete, emits the smallest. For objects, use a comparer.

When to use

Aggregating finite sets: the lowest price, the earliest timestamp, the smallest score.

See also

max, reduce, toArray

script.ts // TypeScript
CONSOLE · Console output
Hit Run to see the result...