rhodonite
    Preparing search index...

    Function assertExist

    • Asserts that a value exists (is not null or undefined) and throws an error if it doesn't

      Type Parameters

      • T

        The type of the value

      Parameters

      • val: T

        The value to assert existence for

      Returns asserts val is NonNullable<T>

      Error if the value is null or undefined