I'm working with an array of N objects and need to create a filter using JSON.stringify that dynamically checks multiple properties.
Looking for a solution that is dynamic and doesn't rely on static properties (as shown in the code snippet above).
Any suggestions?
return items.filter(item =>
JSON.stringify(item.prop1 && item.prop2 & ....)
.toLowerCase()
.includes(searchParam)
);