ts-fortress
    Preparing search index...

    Variable isNonZeroUint16Const

    isNonZeroUint16: (a: number) => a is PositiveUint16

    Type guard that checks if a value is a non-zero integer in [1, 2^16).

    Returns true for a non-zero integer in [1, 2^16) — a value with no fractional component.

    Type Declaration

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

        • a: number

        Returns a is PositiveUint16

        true if the value is a non-zero integer in [1, 2^16), false otherwise