結果 : find first repeating element in array javascript