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