ts-data-forge
    Preparing search index...
    isUint: (a: number) => a is NonNegativeInt = is

    Checks if a number is a Uint.

    Type Declaration

      • (a: number): a is NonNegativeInt
      • Parameters

        • a: number

        Returns a is NonNegativeInt

        true if the value is a Uint, false otherwise.

    assert.ok(isUint(4));
    assert.notOk(isUint(-1));
    assert.ok(Uint.is(0));