The first and simplest way to shuffle an array in JavaScript is to provide a custom function to a .sort() . const array = [1, 2, 3, 4, 5, 6, ...
確定! 回上一頁