InclusiveMinMax
Extends MinMax with inclusivity control for both bounds.
Sinceβ
2.0.0
Exampleβ
const range1: InclusiveMinMax = { min: 0, max: 10 }; // [0, 10) - default
const range2: InclusiveMinMax = { min: 0, max: 10, minInclusive: false }; // (0, 10)
const range3: InclusiveMinMax = { min: 0, max: 10, maxInclusive: true }; // [0, 10]
const range4: InclusiveMinMax = { min: 0, max: 10, minInclusive: false, maxInclusive: true }; // (0, 10]
Extendsβ
Propertiesβ
min: numberβ
Minimum value
Inherited from: MinMax.minβ
max: numberβ
Maximum value
Inherited from: MinMax.maxβ
minInclusive?: booleanβ
Whether the minimum value is inclusive (default: true)
maxInclusive?: booleanβ
Whether the maximum value is inclusive (default: false)