Don't know where to look?

You can search all my notes here

Shuffle an array in js

javascript
const shuffleArray = arr => 
  arr.sort(() => Math.random() - 0.5)

Comments

Post-Meta
  • Published: July 15, 2019
  • Last modified: July 15, 2019