数组乱序:
var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];arr.sort(function () { return Math.random() - 0.5;});
数组拆解: flat: [1,[2,3]] --> [1, 2, 3]Array.prototype.flat = function() { return this.toString().split(',').map(item => +item )}