So you can force forEach() to break out of the loop early by overwriting the array's length property as shown below. const myNums = [1, 2, 3, 4, ...
確定! 回上一頁