overflow

abstract val overflow: Overflow?(source)

How to deal with out-of-range values

  • In 'constrain' mode, out-of-range values are clamped to the nearest in-range value.

  • In 'reject' mode, out-of-range values will cause the function to throw a RangeError.

The default is 'constrain'.