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