Created
December 13, 2024 08:43
-
-
Save GabrielModog/a7c90213870e1c911c091d6f76d2b519 to your computer and use it in GitHub Desktop.
diabolical blazing-fast sleep sort
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
| const arr = [5, 4, 1, 2, 8, 10] | |
| arr.forEach(num => { | |
| setTimeout(() => console.log(item), num * 0.5) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment