Skip to main content
Temporal.AssignmentOptions.overflow - Temporal - Web documentation
property Temporal.AssignmentOptions.overflow

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'.

Type

"constrain" | "reject"