結果 : filter method in javascript to remove duplicates