結果 : print all duplicate elements of an array javascript