Posts by Jorge Alegretti • 21 points
1 post
-
2
votes3
answers5868
viewsA: Compare values between Array’s Javascript
I found a slightly simpler way to use the filter for this purpose. The Array.prototype.includes() check whether or not the item exists in the array and returns a Boolean. const jogo = [5, 15, 25,…