3👍
✅
you can try below function to 1st check if it exists and then convert that to lowercase
user.filter(item => item.name_en && item.name_en.toLowerCase().includes(keywordSearch))
Source:stackexchange.com