Function: nonNull()
nonNull<
T>(…sources):Sequence<NonNullable<T>>
Concatenates the sources and yields only elements that are not null or
undefined, narrowing the element type to NonNullable<T>.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”sources
Section titled “sources”…readonly Source<T>[]
Containers to concatenate (nullish sources are skipped).
Returns
Section titled “Returns”Sequence<NonNullable<T>>