Have two emails and trying to check if it matches anything in my data array which is an array of emails.
Thought the below would return true
or false
but it seems to be not working:
const email1 = test.emailAddress.value;
const email2 = test2.emailAddress.value;
data.every(({ email }) => email.value === email1 || email.value === email2);