let arr1: number[] = [1, 2, 3]
let arr2: string[] = ['1', '2', '3']
let arr3: boolean[] = [true, false]
let arr4: any[] = [1, '2', true, [], {}]
let arr5: Array<number> = [1, 2, 3, 4]
let arr6: Array<string> = ['1', '2', '3']
let arr7: Array<boolean> = [true, false]
//多维数组
let arr8:number[][][] = [[[123,]]]
let arr9:Array<Array<number | string>> = [[123, 'xxx']]
function Arr(...args:any):void {
console.log(arguments)
let arr:IArguments = arguments
console.log(arr)
}
Arr(4, 5, 6)
interface ArrNumber {
[index: number]: number
}
let arr: ArrNumber = [1, 2, 3]
console.log(arr)