1
0
Fork 0
js-utils/docs/api/js-utils.filternil.md

25 lines
589 B
Markdown
Raw Normal View History

2020-03-29 13:43:52 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [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&lt;Optional&lt;TItem&gt;&gt;</code> | |
<b>Returns:</b>
`Array<TItem>`