> 在此挑战中建议使用TypeScript 4.0
实现一个泛型`Pop`,它接受一个数组`T`,并返回一个由数组`T`的前 N-1 项(N 为数组`T`的长度)以相同的顺序组成的数组。
例如
```ts
type arr1 = ['a', 'b', 'c', 'd']
type arr2 = [3, 2, 1]
type re1 = Pop // expected to be ['a', 'b', 'c']
type re2 = Pop // expected to be [3, 2]
```
**额外**:同样,您也可以实现`Shift`,`Push`和`Unshift`吗?