Copy let list: number[] = [1, 2, 3];. The above indicates to TypeScript that this array should only hold numbers. The second way uses a generic ...
確定! 回上一頁