31. implement Push<T, I>

TypeScript
Is this helpful ?

  - accepted / - tried

Implement Push<T, I> to return a new type by pushing new type into tuple type.

type A = Push<[1,2,3], 4> // [2,3]
type B = Push<[1], 2> // [1, 2]
type C = Push<[], string> // [string]

Let's try to solve this problem within 10 mintues.

Discuss(5)