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

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>