I have this array
const a1 = ["[email protected]", "[email protected]", "[email protected]"];
const b1 = [
{
"Name": "username",
"Email": "[email protected]"
},
{
"Name": "username2",
"Email": "[email protected]"
},
];
I want to get all email which does not exist in b1
and is there in a1
without object in array i’m able to check with filter
this.a1.filter(x => !b1.includes(x))
2
Answers
hope it helps!