⚗️ transform 🔢 customizable
Drops the first entry in the tuple T.
T
If the type is an array, the same array will be returned.
type R = DropFirst<[1, 2, 3]> // [2, 3]type R = DropFirst<[string]> // []type R = DropFirst<[]> // []type R = DropFirst<string[]> // string[] Copy
type R = DropFirst<[1, 2, 3]> // [2, 3]type R = DropFirst<[string]> // []type R = DropFirst<[]> // []type R = DropFirst<string[]> // string[]
Return type when T is Array. Default to T.
Array
Return type when T is an empty tuple. Default to [].
[]
⚗️ transform 🔢 customizable
Drops the first entry in the tuple
T
.If the type is an array, the same array will be returned.