You can use the JavaScript built in object Set to keep unique values of any type. You can make use of Set to remove duplicate entries from a JavaScript array. Here is how the code looks
1 2 3 |
let technologies = ['JS','PHP','Ruby','Node','Python','PHP','JS'] technologies = [...new Set(technologies)] console.log(technologies) |