Skip to content

Instantly share code, notes, and snippets.

@essamamdani
Created April 27, 2020 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save essamamdani/68a2854c6137fcbe7b2fb5d8fcd27e3d to your computer and use it in GitHub Desktop.
Save essamamdani/68a2854c6137fcbe7b2fb5d8fcd27e3d to your computer and use it in GitHub Desktop.
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