Posts by Gabriel Sampaio • 11 points
1 post
-
0
votes3
answers107
viewsA: how to compare whether a dataset of an array contains in the other javascript array
Unfortunately javascript cannot compare arrays. So ['oi'] == ['oi'] will return false. To make it work, you have to compare them as if they were strings. In your case, use a JSON stringify and a…
javascriptanswered Gabriel Sampaio 11