diff --git a/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx b/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx index 8dff5ce..b6356b5 100644 --- a/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx +++ b/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx @@ -20,12 +20,12 @@ that the cards do not get shuffled when remounting the TinBit components, just w ```js const shuffleArray = (array) => { - const shuffledArray = array.slice(); // Create a copy of the array - for (let i = shuffledArray.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]]; - } - return shuffledArray; + const shuffledArray = array.slice(); // Create a copy of the array + for (let i = shuffledArray.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]]; + } + return shuffledArray; }; ```