mardi 7 août 2018

Checking multiple array value is equal or not

I've two arrays with the same value & length, but they are not arranged. example:

var x = ['tom', 'jerry', 'duck'], y = ['jerry', 'duck', 'tom']

Now how can I check whether they are equal or not using javascript?

Note:

Aucun commentaire:

Enregistrer un commentaire