I have an array:
[
{name: 'one', price: 100},
{name: 'one', price: 100},
{name: 'two', price: 200},
{name: 'two', price: 200},
{name: 'three', price: 300},
]
I want to take only duplicates objects. Like this:
[
{name: 'one', price: 100},
{name: 'one', price: 100},
{name: 'two', price: 200},
{name: 'two', price: 200},
]
How I can do this. Maybe lodash can help?