JSFiddle - React, Tailwind, and code Playground
JavaScript
var arr = ['a', 'b', 'c', 'd', 'e', 'f'];
arr = arr.sort(function() {
return Math.random() - .5
});
console.log(arr);
var arr = ['a', 'b', 'c', 'd', 'e', 'f'];
arr = arr.sort(function() {
return Math.random() - .5
});
console.log(arr);