結果 : find index of duplicate elements in array javascript