Brex interview question

How can you have an array without duplicate values in JavaScript?