Created
June 19, 2022 19:58
-
-
Save geraldotech/ee373667fb96dd2069e043ef1f5321a8 to your computer and use it in GitHub Desktop.
Filter Obj Array && console.warn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
busca2 = animais.filter((value)=> value.tipo === 'gato'); | |
busca2.length != 0 ? console.log(busca2) : console.warn('404') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment