ixfx
    Preparing search index...

    Function throwNumberTest

    • Checks if t is not a number or within specified range. Throws if invalid. Use numberTest to test without throwing.

      • (empty, default): must be a number type and not NaN.
      • positive: must be at least zero
      • negative: must be zero or lower
      • aboveZero: must be above zero
      • belowZero: must be below zero
      • percentage: must be within 0-1, inclusive
      • nonZero: can be anything except zero
      • bipolar: can be -1 to 1, inclusive

      Alternatives: integerTest for additional integer check, percentTest for percentage-range.

      Parameters

      • Optionalvalue: unknown

        Value to test

      • range: NumberGuardRange = ...

        Range

      • parameterName: string = ...

        Name of parameter

      Returns void