Here, for acts as a foreach loop in TypeScript, only the "for loop" key ... so we use typeof animals[number] to get a union type of all items in our array: ...
確定! 回上一頁