31. implement Push<T, I>
シェアしよう
- accepted / - tried
Push<T, I>
を実装してください。
type A = Push<[1,2,3], 4> // [2,3]
type B = Push<[1], 2> // [1, 2]
type C = Push<[], string> // [string]
- accepted / - tried
Push<T, I>
を実装してください。
type A = Push<[1,2,3], 4> // [2,3]
type B = Push<[1], 2> // [1, 2]
type C = Push<[], string> // [string]