Pregunta de entrevista de Magic Software

They were mainly focused on JS, OOPS concept in javascript. How to filter the duplicates from an array,