Created
November 11, 2017 08:18
-
-
Save spences10/2c57e9ca1bbbf7d49cd5ec3fbda0c212 to your computer and use it in GitHub Desktop.
Unique items from array
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
const arr = [1,2,2,3,3,3,4,5,6,6,6,7,7,8] | |
const uniqueArray = [...new Set(arr)] | |
console.log(uniqueArray) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment