Skip to content
Discussion options

You must be logged in to vote
 const filterItems = (query) => {
        return customersFilter.filter(el => 
              el.name?.toLowerCase().indexOf(query.toLowerCase()) > -1
            | el.contact?.email?.toLowerCase().indexOf(query.toLowerCase()) > -1
            | el.cnpj?.indexOf(query) > -1
            );
      };

Consegui dessa forma

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thauealfredo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant