I am trying to filter an array of objects to return just the objects that have property the other objects do not have. Not a value in a property, but the property itself.
results [
{
"title": "Foo",
"value": 34
},
{
"value": 43
},
{
"title": "The Title",
"value": 99
]
In the example above I want the first and last object as they have a 'title' property, in an new array of objects.
I looked at 'filter' but it seems to work with values.. How do I this?
Thanks