Skip to content
Advertisement

how to filter array in reactJS with 2 condistions

I try to filter the array with two conditions but without success, it only refers to the second condition, each condition individually works great.

The original task : “When entering a text in the “search” text box, the users list will presents anly users that
their name or email contains that text

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement