Array.at 方法接收一個integer 作為參數,並會回傳陣列中對應索引的值,其可以傳入正數,亦可傳入負數。例如: const ary = [2,4,6,8,10]ary.at(1) // 4ary.at(-1) ...
確定! 回上一頁