Magic Software interview question

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