2👍
✅
Your inner filter function doesn’t return anything so it is always false. Add return on this line.
return sub.value.toLowerCase() === searchstring.toLowerCase()
Source:stackexchange.com