• 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>.

    Type Parameters

    • X

    Parameters

    • value: undefined | X

    Returns value is X

Generated using TypeDoc