Closed hyeyoonS closed 2 months ago
by jiangshan @jiangshanmeta
Array.push์ ์ ๋ค๋ฆญ ๋ฒ์ ์ ๊ตฌํํ์ธ์.
Array.push
์์:
type Result = Push<[1, 2], '3'> // [1, 2, '3']
type Push<T extends unknown[], U> = [...T, U]
type Push<T extends any[], U> = [...T, U]
Push
![#array](https://img.shields.io/badge/-%23array-999)
Array.push
์ ์ ๋ค๋ฆญ ๋ฒ์ ์ ๊ตฌํํ์ธ์.์์:
๊ด๋ จ๋ ๋ฌธ์ ๋ค