I have an array of object which looks like
const test = [{'activity': {'Name': 'Peter'}}, {'activity': {'Name': 'Peter'}},
{'activity': {'Name': 'John'}},{'activity': {'Name': 'Derek'}}]
Here I have used this function
const uniqBuyingSessions = _.uniqBy(
buyingSessions, 'Name'
)
It returns only the first object, in any case .
So, I was expecting the result to be
const test = [{'activity': {'Name': 'Peter'}},
{'activity': {'Name': 'John'}},{'activity': {'Name': 'Derek'}}]
So, Is there anything that I am doing wrong?