• Asserts that a given value is not empty.

    Type Parameters

    Parameters

    • value: T

      The value to be checked for non-emptiness.

    • Optionalmin: number = 1

      The minimum acceptable length or size.

    • Optionalmax: number

      The maximum acceptable length or size.

    Returns asserts value is NonNullable<T>

    If the value is empty.

    If the max length is smaller than the min length.