Function
compactArray<T>(elements: (T | null | undefined)[]): T[]
Accepts an array which might be a mix of values and null/undefined and returns the same array without said null/undefined values.
the array to compact
↑↓ move↵ openEsc close