Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
266 B
3
Indexable
Never
  const searchDoctors = async name => {
    const filteredDoctors = doctorList.filter(item => {
      const fullName = `${item.adi} ${item.soyadi}`;
      return fullName.toLowerCase().includes(name.toLowerCase());
    });
    setDoctors(filteredDoctors);
  };