結果 : how to find index of duplicate elements in array javascript