@tempots/std

filterNullsFromArray() function

Filters out null and undefined values from an array.

Signature:

filterNullsFromArray: <T>(arr: Array<T | Nothing>) => T[]

Parameters

Parameter

Type

Description

arr

Array<T | Nothing>

The array to filter.

Returns: T[]

The filtered array.