I have long array and I want to check if one of elements from other array matches any from first array.
let name;
let list = ["Kat", "Jane", "Jack"]; // for example
let input = ["Hey", "i'm", "Jack"];
if (input.forEach(el => el.match(list))) {
do.something();
name = ''; // get name somehow
}
But code above always returns null.