Checks if input is not undefined in a TypeScript-friendly way.
This is convenient to use in e.g. Array.filter as it will convert the type of a Array<Foo | undefined> to Array<Foo>.
Array.filter
Array<Foo | undefined>
Array<Foo>
Generated using TypeDoc
Checks if input is not undefined in a TypeScript-friendly way.
This is convenient to use in e.g.
Array.filter
as it will convert the type of aArray<Foo | undefined>
toArray<Foo>
.