The Array method .forEach() : someArray.forEach((elem, index) => { console.log(elem, index); });. The for-of loop:
確定! 回上一頁