TailOfArray<T>: T extends [infer _, ...(infer Rest)]
    ? Rest
    : never

Returns the tail of an array (all elements except the first one).

Type Parameters

  • T extends unknown[]