Suppose I have an array of objects that have
name: id: school: address:
I know how to filter by one category, such as
data.filter(data => data[name].includes("Lake"))
to get all the objects whose name includes the word Lake.
But is there a way to filter the data to get all object where any of the fields includes the word?
data.filter(data => data.includes("Lake"))
doesn't work, I already tried.
Thank you!