I have an array of Objects:
[
{id: 1, thing_id: 2},
{id: 1, thing_id: 3},
{id: 1, thing_id: 4}
]
and I want to filter that using an array of thing_ids:
[2,3]
I did look at filtering an array of objects using an array without nested loops js but it doesn't seem to work.
Clearly I need to use .filter
somehow?
Mick