Check if an array have duplicated elements Js

Hi, here some code solutions that will help us to check if an array have duplicated elements or not. First Solution Result: Second Solution Result: Third solution: Result: Four Solution: Result: By Cristina Rojas.