jeudi 21 octobre 2021

check 2 arrays if the result is equal in vue

I need help, I have two array like this

let A = ['a', 'b', 'c']
let B = ['a', 'b', 'c']

and I try this but not work

if(A === B) {
  console.log('EQUAL')
} else {
  console.log('NOT EQUAL')
}

how to check if they are equal in vue? how to implement it?

Aucun commentaire:

Enregistrer un commentaire