Open bharat-dussa opened 1 month ago
shuffleArray
Shuffles the elements of an array randomly.
File: src/utils/array/shuffleArray/shuffleArray.ts Test File: src/utils/array/shuffleArray/shuffleArray.test.ts
src/utils/array/shuffleArray/shuffleArray.ts
src/utils/array/shuffleArray/shuffleArray.test.ts
Parameters:
arr: any[]
Returns:
any[]
Example:
shuffleArray([1, 2, 3, 4]); // Returns array with random order, e.g., [3, 1, 4, 2]
@bharat-dussa i want to solve this issue please assign
shuffleArray
Shuffles the elements of an array randomly.
File:
src/utils/array/shuffleArray/shuffleArray.ts
Test File:src/utils/array/shuffleArray/shuffleArray.test.ts
Parameters:
arr: any[]
: The array to shuffle.Returns:
any[]
: The shuffled array.Example: