Skip to content
Advertisement

filter Async data in Angular [closed]

JavaScript

I want to filter only coins whos symbol is BTC ETH and SOL into a separate array.(I have set this above data = walletData).I’m trying to do this

JavaScript

I get the result

JavaScript

But when I try to

JavaScript

I don’t get anything.What am I doing wrong here, and how do I get the desired result.Thankyou

Advertisement

Answer

You are using “&&” (and) instead of “||” (or)

change to:

JavaScript

Edit:

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