結果 : write a function in javascript that removes duplicates from an array