結果 : check for duplicates in array of objects javascript