数组乱序

162 阅读1分钟
const disorderArray = (data) => data.sort(() => Math.random() > 0.5 ? -1 : 1);