結果 : check for duplicate elements in array javascript