sketches
    Preparing search index...

    Class NumberValidator

    Static methods for validating number types.

    Index

    Methods

    • Checks whether the input is a finite positive number, or zero when zeroInclusive is true.

      Parameters

      • input: unknown

        The input to check.

      • OptionalzeroInclusive: boolean

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

      Returns boolean

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