Array › shuffle
Official
Signature:
shuffle(): this
Returns: this — The array itself.
Example:
const arr = [1, 2, 3];console.log(arr.shuffle()); // something like [2, 3, 1]console.log(arr); // same as above