I’m trying to compare two arrays to determine if there the same, so for example
let one = [1,2,3,4,5]
let two = [1,2,3,4,5]
Something like: (one === two) true / false
I tried using Arrays.equals(one,two) but it doesn’t work, any ideas
I’m trying to compare two arrays to determine if there the same, so for example
let one = [1,2,3,4,5]
let two = [1,2,3,4,5]
Something like: (one === two) true / false
I tried using Arrays.equals(one,two) but it doesn’t work, any ideas
The linked Stack post from Lee above has a great example that you can use and there are others too, all you need to do is look yourself.
https://www.geeksforgeeks.org/how-to-compare-two-arrays-in-javascript/