3 lines
79 B
TypeScript
3 lines
79 B
TypeScript
export function shuffle(array) {
|
|
array.sort(() => Math.random() - 0.5);
|
|
} |