Skip to main content

CommonIsNonNegativeInteger

Callable

  • CommonIsNonNegativeInteger(value: unknown): value is number

  • Type guard which checks that a value is a non-negative (i.e. positive or zero) integer

    @see

    Parameters

    • value: unknown

      The value to test

    Returns value is number