[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [filterNil](./js-utils.filternil.md) ## filterNil() function Remove any null or undefined items from the list. Signature: ```typescript export declare function filterNil(list: ArrayLike>): Array; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | list | ArrayLike<[Optional](./js-utils.optional.md)<TItem>> | | Returns: Array<TItem>