Pergunta de entrevista da empresa Brex

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