0
To know if a variable is in an array.
There is something I can use as if it were PHP in_array in Javascript?
Example of how it would look in PHP:
$cores = ['azul', 'verde', 'amarelo'];
$corParaBuscar = 'verde';
$corEncontradaNoArray = in_array($corParaBuscar, $cores);
Result -> $colorFind