Created
June 25, 2021 11:11
-
-
Save creotip/7a9fbe0ae9db8167a2231d665016b3e5 to your computer and use it in GitHub Desktop.
Javascript shuffle array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shuffle = arr => arr.sort(() => 0.5 - Math.random()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment