함수명<제네릭명>
function myArr<T>(el: T): T[] { return [el]; } myArr<number>(1); //[1] myArr<string>('hi'); //['hi'] myArr<boolean>(true); //[true]
myArr<number>
[1]