Im playing around with React and json data, i have an input field to search data from the json file.
I can figure out how to search one key of the json data, is there any chance of some help.
My code is:
if(searchString.length > 0){
contactsData = contactsData.filter(function(l){
return l.name.toLowerCase().match( searchString );
});
}
where l.name i also want l.company and l.email.