Randomise items in Array using .sort()

Javascript's Array .sort() method orders the elements of an array and returns the array based on your implementated function. In this case we're going to shuffle the elements order.
const array = ['Alfa', 'Bravo', 'Charlie', 'Delta', 'Echo'];
array.sort(() => Math.random() - 0.5); 
// => ►(5) ["Bravo", "Delta", "Alfa", "Charlie", "Echo"]
Convert it to a function and you have a great shuffle array utility:
function shuffle(arr) {
  return arr.sort(() => Math.random() - 0.5); 

const array = ['Alfa', 'Bravo', 'Charlie', 'Delta', 'Echo'];
const shuffledArray = shuffle(array);
// => ►(5) ["Echo", "Bravo", "Alfa", "Charlie", "Delta"]