結果 : write a function to remove duplicates from an array in javascript