This question already has an answer here:
- How to compare arrays in JavaScript? 29 answers
I am trying to check when my array contains certain values:
if( array == ["value1", "value2", "value3"] ){
console.log('yes');
}else{
console.log('no');
}
But it does not work...
Aucun commentaire:
Enregistrer un commentaire