I have 2 arrays with objects.
const a = [
{
name: 'John'
},
{
name: 'Adam'
}
]
const b = [
{
name: 'Adam'
}
]
I want to get the object is not the same in the array and also get the object that is same in arrays as well.
const same = [
{
name: 'Adam'
}
]
const not_same = [
{
name: 'John'
}
]
Using lodash library is it possible?