fix(tools): rename shuffle => shuffleArray (#2284)

This commit is contained in:
Karsa
2024-07-03 22:52:32 +02:00
committed by GitHub
parent c8b00be37e
commit 12b412aa87
+1 -1
View File
@@ -3,7 +3,7 @@
* @param {array} array
* @returns {array}
*/
export const shuffle = (array) => {
export const shuffleArray = (array) => {
// eslint-disable-next-line no-plusplus
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));