GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Validate that a value is a finite number within a given range.

      Parameters

      • value: unknown

        The value to validate; coerced to number via Number().

      • min: number = -Infinity

        Minimum allowed value (inclusive). Defaults to -Infinity.

      • max: number = Infinity

        Maximum allowed value (inclusive). Defaults to Infinity.

      Returns number | null

      The validated number, or null if invalid or out of range.

      Rejects NaN, Infinity, and out-of-range values from untrusted input (URL params, config).