結果 : get index of duplicates in array javascript