Advertisement
DarthCoffee

Untitled

Jul 18th, 2020
1,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let nameSearch = () => {
  2.         let found = false;
  3.         if (isFilterSet) {
  4.           for (const col in searchTerms) {
  5.             if (data[col].toString().toLowerCase() === searchTerms[col].toLowerCase()) {
  6.               found = true
  7.             }
  8.           }
  9.           return found
  10.         } else {
  11.           return true;
  12.         }
  13.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement