let arr = ['', 55, true, false, '15'] arr = arr.sort(() => 0.5 - Math.random()) console.log(arr) // [ '', '15', 55, false, true ]