index.js
const users = [{ name: 'john' }, { name: 'jane' }, { name: 'bob' }]
const keyword = 'j'
const filteredUsers = JSON.stringify(Object.values(c)).includes(
keyword.toLowerCase()
)
How to search for keywords within objects.
const users = [{ name: 'john' }, { name: 'jane' }, { name: 'bob' }]
const keyword = 'j'
const filteredUsers = JSON.stringify(Object.values(c)).includes(
keyword.toLowerCase()
)