Given the following sample:
var arr = [
[1,2,3,4,56],
[45,5,56,67,4],
[5,4,5,88,75],
[2,4,5,66,7]
];
var len = arr.length;
for(var i = 0; i < len; i++) {
var parent = arr[i];
for(var j = 0; j < parent.length; j++) {
console.log(parent[j]);
}
}
How would I determine if the value at each index in the nested arrays are lesser/greater than the next array? I tried using parent[j][0] > parent[j][1], but that returns undefined.