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

    Type guard that checks if a value is a positive integer in [1, 2^15).

    Returns true for a positive integer in [1, 2^15) — a value with no fractional component.

    Type Declaration

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

        • a: number

        Returns a is PositiveInt16

        true if the value is a positive integer in [1, 2^15), false otherwise