drop
Import from @varavel/vdl-plugin-sdk/utils/arrays.
Removes a specified number of elements from the beginning of an array and returns the rest.
This function takes an array and a number, and returns a new array with the specified number of elements removed from the start.
Type Parameters
| Type Parameter | Description |
|---|---|
T |
The type of elements in the array. |
Parameters
| Parameter | Type | Description |
|---|---|---|
arr |
readonly T[] |
The array from which to drop elements. |
itemsCount |
number |
The number of elements to drop from the beginning of the array. |
Returns
T[]
A new array with the specified number of elements removed from the start.