rangeRight
Import from @varavel/vdl-plugin-sdk/utils/math.
Utility functions re-exported from es-toolkit (MIT License).
See https://github.com/toss/es-toolkit for more details.
Call Signature
Returns an array of numbers from end (exclusive) to 0 (inclusive), decrementing by 1.
Parameters
| Parameter | Type | Description |
|---|---|---|
end |
number |
The end number of the range (exclusive). |
Returns
number[]
An array of numbers from end (exclusive) to 0 (inclusive) with a step of 1.
Example
Call Signature
Returns an array of numbers from end (exclusive) to start (inclusive), decrementing by 1.
Parameters
| Parameter | Type | Description |
|---|---|---|
start |
number |
The starting number of the range (inclusive). |
end |
number |
The end number of the range (exclusive). |
Returns
number[]
An array of numbers from end (exclusive) to start (inclusive) with a step of 1.
Example
Call Signature
Returns an array of numbers from end (exclusive) to start (inclusive), decrementing by step.
Parameters
| Parameter | Type | Description |
|---|---|---|
start |
number |
The starting number of the range (inclusive). |
end |
number |
The end number of the range (exclusive). |
step |
number |
The step value for the range. |
Returns
number[]
An array of numbers from end (exclusive) to start (inclusive) with the specified step.