結果 : how to check if array has duplicates javascript