Created
November 2, 2020 19:26
-
-
Save DoctorDerek/3c3c7b5c21b67cabd7bdf4e15a16df66 to your computer and use it in GitHub Desktop.
Use Set to make an Array with the ... spread operator as a one-liner
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
[...new Set([3, 4, 5, 5])] // [3,4,5] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment