結果 : how to remove duplicates from array in javascript using for loop