I want to iterate an array and keep only one value if there are more found with the same value.
Example:
const arrayElement = ['red', 'white', 'blue', 'blue'];
To
const arrayElement = ['red', 'white', 'blue'];
How can I do that with vanilla javascript?