[Vuejs]-Javascripts : Cannot read property 'toLowerCase' of undefined

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))

Leave a comment