Function notNull

  • Type guard against null value

    Type Parameters

    • T

    Parameters

    • value: null | T

      Value that could be null

    Returns value is T

    Confirmation that the value is not null