Last active
March 31, 2021 09:44
-
-
Save martinratinaud/aa6a05318f24e97738c8ed50111f71b5 to your computer and use it in GitHub Desktop.
One liners javascript typesccript
This file contains hidden or 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
// shuffle an array | |
const shuffle = (array: any[]) => array.sort(() => 0.5 - Math.random()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment