Created
October 30, 2020 22:20
-
-
Save DoctorDerek/4a5b9b0c3df240422390070e355717d7 to your computer and use it in GitHub Desktop.
Find unique items by making a Set from a JavaScript array 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
Array.from(new Set([37, 37, 3700, 3700])) // [37,3700] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment