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

    Type guard that checks if a value is a non-positive integer.

    Returns true for a non-positive integer — a value with no fractional component, including values outside the safe integer range (unlike SafeInt).

    Type Declaration

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

        • a: number

        Returns a is NonPositiveInt

        true if the value is a non-positive integer, false otherwise