Get all dimensions except the last one
type AllButLast = AllButLast<[2, 3, 4]> // readonly [2, 3] Copy
type AllButLast = AllButLast<[2, 3, 4]> // readonly [2, 3]
Get all dimensions except the last one