結果 : check if array has duplicates javascript