- Preparing search index...
- The search index is not available
Tuff
- compactBy<T, K>(array: (undefined | null | T)[], ...props: K[]): RequireProps<NonNullable<T>, K>[]
-
Type Parameters
-
T
-
K extends string | number | symbol
Parameters
-
array: (undefined | null | T)[]
-
Rest ...props: K[]
Returns RequireProps<NonNullable<T>, K>[]
Filters out elements for which the given properties are null or undefined. Elements that are null or undefined themselves are filtered out.