結果 : check if element is repeated in array javascript