Range
The Range class provides utility methods for working with numeric ranges. It allows you to generate a range of numbers, check if a value is within a specified range, and create aliases for the range methods.
Functions
rangeTo
Creates an array representing a range of numbers from start to end (inclusive) with an optional step.
rangeUntil
Creates an array representing a range of numbers from start to (end - 1) with an optional step.
inRange
Checks if a value is within the specified numeric range.
Last updated