Skip to content

compact

compact<T>(iterable): IterableIterator<T>

Defined in: packages/core/src/iterable/compact.ts:7

Removes null and undefined values from an iterable.

T extends object

Iterable<T | null | undefined>

IterableIterator<T>

An iterator yielding only non-null and non-undefined values.