WithoutLast<T>: T extends [...(infer A), any] ? A : []

Type Parameters

  • T