let old_arr = ["A", "A", "B", "C", "D", "E", "F", "F"] let new_arr = [...new Set(old_arr)]; new_arr ["A", "B", "C", "D", "E", "F"]
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter