How can I detect with javascript if at least one value in array is same as value in other array on the same place?
If you can’t understand, this example will help you.
This should return true:
var array = [
[
[3, 5],
[2, 3]
],
[
[2, (1)],
[4, 5]
],
[
[2, (1)],
[4, 5]
],
];
This should return false:
var array = [
[
[3, 4],
[2, 3]
],
[
[2, 1],
[4, 5]
],
];
1 Answer