Filters out falsy values from a type.
Enables type-safe operations on values that are guaranteed to be truthy, eliminating the need for runtime falsy checks.
function assertTruthy<T>(value: T): asserts value is Truthy<T>function compact<T>(arr: T[]): Truthy<T>[] Copy
function assertTruthy<T>(value: T): asserts value is Truthy<T>function compact<T>(arr: T[]): Truthy<T>[]
Filters out falsy values from a type.
Enables type-safe operations on values that are guaranteed to be truthy, eliminating the need for runtime falsy checks.