Create an Array containing a range of elements.
Syntax
Parameters
from
- The value to start the sequence on.to
- The value to end the sequence on.step
- The positive integer increment between elements in the sequence. If omitted, it defaults to 1
.
Result
Returns an Array of values in sequence from from
to to
.
If a default step
increment is satisfactory, the Range Operator (...
) can be used.