Gets a new readonly tuple type containing all elements of A except the first one.
If A is empty or has only one element, returns readonly [].
If A is a general array type, returns Readonly<A>.
Type Parameters
Aextendsreadonlyunknown[]
The readonly array or tuple type.
Returns
A new readonly tuple type with the first element removed.
Gets a new readonly tuple type containing all elements of
Aexcept the first one. IfAis empty or has only one element, returnsreadonly []. IfAis a general array type, returnsReadonly<A>.