how do you filter out objects from an array of objects by the value of one key if this key is also included in an array of strings?
const objArr = [
{
identifiers: {id: 1, name: "X"},
char: {char1: a, char2: b}
},
{
identifiers: {id: 2, name: "Y"},
char: {char1: c, char2: d}
},
]
not filter out all objcts that have a name that is included in this arr:
with strArr = [
"X", "Z"
]
result:
const objArrAfterFilter = [
{
identifiers: {id: 2, name: "Y"},
char: {char1: c, char2: d}
},
]