Created
April 27, 2020 16:19
-
-
Save essamamdani/68a2854c6137fcbe7b2fb5d8fcd27e3d to your computer and use it in GitHub Desktop.
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
var arr = ["functions", "this" , "var" , "const" , "functions" , "var"] | |
var refinedArr = new Set(arr) | |
console.log(refinedArr) | |
arr = [...refinedArr] | |
console.log(arr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment