Skip to content

Commit

Permalink
Update src/shuffle.ts
Browse files Browse the repository at this point in the history
Co-authored-by: William <[email protected]>
  • Loading branch information
benzekrimaha and williamlardier authored Oct 2, 2024
1 parent 9ec14ab commit d76a181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shuffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function randomRange(min: number, max: number): number {
* @param {Array} array - Any type of array
* @return {Array} - The sorted array
*/
export function shuffle(array) {
export function shuffle(array: any[]) {
if (array.length === 1) {
return array;
}
Expand Down

0 comments on commit d76a181

Please sign in to comment.