I am creating a very lightweight search functionality that takes the following:
if (searchStr == people.first_name ||
searchStr == people.last_name ||
searchStr == people.job ||
searchStr == people.skills.forEach(function(x) { return x })) {
Results.push(people)
}
searchStr
is the search string; 'people' is a person object that has a single first and last name and a job, but only one of those thats an array is people.skills -- is there anyway I can traverse through that array in the if-conditional with an anonymous function?