25 lines
589 B
Markdown
25 lines
589 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[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.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function filterNil<TItem>(list: ArrayLike<Optional<TItem>>): Array<TItem>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| list | <code>ArrayLike<Optional<TItem>></code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`Array<TItem>`
|
||
|
|