Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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