My collection of messages includes
oldMessages = [ {id:1,message:'message_A'} , {id:2,message:'message_B'} ]
and another set as
newMessages = [ {id:1,message:'message_A'} , {id:2,message:'message_B'} , {id:3,message:'message_C'} ]
To extract only the entry {id:3,message:'message_c'}
by comparing oldMessages
with newMessages
, I need to compare them solely on their id values.