Function isNotNil

  • Checks if the specified value is not null and not undefined.

    Type Parameters

    • T

    Parameters

    • value: undefined | null | T

      Value to check.

    Returns value is T

    true if the value is defined.