I want remove with Lodash, the object with uuid: xxx and not xxx2.
How I can make this with Lodash ?
[
{
"uuid": "xxx",
"name": "test"
},
{
"uuid": "xxx2",
"name": "test 2"
}
]
My actual code:
_.forEach(this.objs, (obj, index, collection) => {
_.remove(obj, {uuid})
})