I have two arrays, for example:
invoices: [
{id: 90, Client: 'Bob', paid: false, total: 900},
{id: 91, Client: 'Sarah', paid: false, total: 400}
]
and:
result: [{km: 200, hours: 20, Person: 'Sarah'}]
The invoices array is a JSON response from a GET and will sometimes be larger than result, so I in this case invoices has Bob while it doesnt exist in result.
How can I get the id of any objects whose Client does not appear as Person in result? I tried to do it with a double for loop but it didn't quite work out.