@blwat/utils - v0.1.0-alpha.2
    Preparing search index...

    Class NumberUtility

    Static properties and methods for validating number types.

    0.1.0

    Index

    Methods

    • Is the given input a finite number?

      Parameters

      • input: unknown

      Returns input is number

      true when the input is a finite number; false otherwise.

      0.1.0

    • Is the given input an integer?

      Parameters

      • input: unknown

      Returns input is number

      true when the input is an integer; false otherwise.

      0.1.0

    • Is the given input a positive integer?

      Parameters

      • input: unknown
      • OptionalzeroInclusive: boolean

        true if zero should be considered a valid input. false if zero should be considered an invalid input.

      Returns input is number

      true if the given input is a positive integer, or zero when zeroInclusive is true; false otherwise.

      0.1.0