Open drizzle96 opened 1 month ago
type Length<T extends readonly unknown[]> = T["length"];
์๋ฌ๋๋ก ๊ณ ์น๊ธด ํ์ผ๋ ์ readonly๊ฐ ์์ด์ผ ๋๋์ง ๋ชจ๋ฅด๊ฒ ์
type Length<T extends readonly unknown[]> = T['length']
type Length<T extends string[]> = T['length'];
type Length<T extends readonly unknown[]> = T['length'];
type Length<T extends { length: number }> = T['length']
Length of Tuple
![#tuple](https://img.shields.io/badge/-%23tuple-999)
๋ฐฐ์ด(ํํ)์ ๋ฐ์ ๊ธธ์ด๋ฅผ ๋ฐํํ๋ ์ ๋ค๋ฆญ
Length<T>
๋ฅผ ๊ตฌํํ์ธ์.์์: