Subscribe to my newsletter and never miss my upcoming articles

Shuffle an array in place

Pinned article
Jun 29, 20213 min read

❓Question Write the function shuffle(array) that shuffles (randomly reorders) elements of the array. Multiple runs of shuffle may lead to different orders of elements. For instance: let arr = [1, 2, 3]; shuffle(arr); // arr = [3, 2, 1] shuffle(arr)...

Shuffle an array in place
Log Appropriately
In place deduping an array
LocalStorage wrapper with expiration
Implement Promise.all
Understanding Events in React