Tail
Extracts the tail of a tuple.
If you declare Tail<[A, B, C]>
you will get back [B, C]
.
type Tail<X extends readonly any[]> = ((...args: X) => any) extends (arg: any, ...rest: infer U) => any ? U : never;
Extracts the tail of a tuple.
If you declare Tail<[A, B, C]>
you will get back [B, C]
.