Pregunta de entrevista de Brex

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