Posts by Adonias Lima • 21 points
1 post
-
1
votes1
answer28
viewsA: Equivalent to in_array() to use in Javascript
You can use javascript includes method: let cores = ['azul', 'verde', 'amarelo']; let corParaBuscar = 'verde'; let corEncontradaNoArray = cores.includes(corParaBuscar);…