API reference / @evolu/common / Array / shiftArray
Function: shiftArray()
function shiftArray<T>(array): T;
Defined in: packages/common/src/Array.ts:39
Shifts an item from a non-empty array, guaranteed to return T.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
array | [T, ...T[]] |
Returns
T