▲ Shuffle an Array in JavasScript - Mastering JS at masteringjs.io▼1 up and 1 down, posted by vkarpov15 1002 days ago 1 comment
tracker1 998 days ago. link 1 point ▲ ▼Or.. let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; array.sort((a, b) => Math.round(Math.random()) || -1) console.log(array)