ixfx
    Preparing search index...

    Function rangeMergeValue

    • Computes min/max based on a new value and previous range. Returns existing object reference if value is within existing range.

      If value is not a number, by default it will be ignored. Use the 'nonNumberHandling' param to set it to throw an error instead if you want to catch that

      Parameters

      • value: undefined | number

        Value to compare against range

      • previous: NumericRange

        Previous range

      • nonNumberHandling: "error" | "skip" = ...

        'skip' (default), non numbers are ignored; 'error' an error is thrown

      Returns NumericRange