Created
December 30, 2020 09:18
-
-
Save Ref-Bit/11adb5cf88fbb7d901322fb614f20fbd to your computer and use it in GitHub Desktop.
Get all unique values in a JavaScript array (remove duplicates)
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 onlyUnique = (value, index, self) => self.indexOf(value) === index; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment