Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const searchColumns = (data, search, columns) => data.filter(row => (
- columns.find(key => String(row[key]).toLowerCase().includes(search.toLowerCase()))
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement