結果 : check duplicate elements in array javascript