I have only used JS sets in interviews to avoid duplication - more than once, the interviewer has chuckled appreciatively and directed me to not use them (being too easy)
The main "result" of the interview shouldn't just be "does the code work". The process is far, far more important for understanding how you write code.