Untitled
unknown
plain_text
3 years ago
266 B
13
Indexable
const searchDoctors = async name => {
const filteredDoctors = doctorList.filter(item => {
const fullName = `${item.adi} ${item.soyadi}`;
return fullName.toLowerCase().includes(name.toLowerCase());
});
setDoctors(filteredDoctors);
};Editor is loading...