TypeScript·

3057 - Push

  • #Type Challenges
  • #TypeScript

질문

Array.push의 제네릭 버전을 구현하세요.

예시:

1
type Result = Push<[1, 2], '3'> // [1, 2, '3']
2
3

풀이