Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let nameSearch = () => {
- let found = false;
- if (isFilterSet) {
- for (const col in searchTerms) {
- if (data[col].toString().toLowerCase() === searchTerms[col].toLowerCase()) {
- found = true
- }
- }
- return found
- } else {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement