I have two array of objects in javascripts. Like arr1[] = {emp1,emp2,emp3}
where inturn emp1
has emp1.name
and emp1.address
as property.
Something like
arr1={object {name='a',address='b'} {name='c',address='d'} {name='e',address='f'} }.
arr2={object {name='a',address='b'}}.
I wanted to compare name
property of two array objects and populate the missing items into another array. So result will be result[]={'c','e'}
Whats is the efficient way in achieving this? I don't expect code, please guide me in the right direction. Thanks.