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...
Update: Thanks for help, now this is working for me:
if( JSON.stringify(array) == JSON.stringify(["value1", "value2", "value3"]) ){
console.log('yes');
}else{
console.log('no');
}