Function notNullish

  • Type guard against nullish value

    Type Parameters

    • T

    Parameters

    • value: undefined | null | T

      Value that could be null or undefined

    Returns value is T

    Confirmation that the value is not null nor undefined