Home > rc-js-util > arrayCompact
Strips null and undefined items from arrays (non mutative).
Signature:
export declare function arrayCompact<TItem>(items: ArrayLike<TItem | null | undefined>): TItem[];
Parameter | Type | Description |
---|---|---|
items | ArrayLike<TItem | null | undefined> |
Returns:
TItem[]
See arrayCompact().