dimanche 13 décembre 2015

check if array is equal to in javascript [duplicate]

This question already has an answer here:

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