結果 : check duplicates in array of objects javascript