結果 : filter function to remove duplicates javascript