614 B
614 B
Home > @apextoaster/js-utils > filterNil
filterNil() function
Remove any null or undefined items from the list.
Signature:
export declare function filterNil<TItem>(list: ArrayLike<Optional<TItem>>): Array<TItem>;
Parameters
Parameter | Type | Description |
---|---|---|
list | ArrayLike<Optional<TItem>> |
Returns:
Array<TItem>