var arr = [
[
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
[11, 12, 13, 14, 15],
[16, 17, 18, 19, 20],
[21, 22, 23, 24, 25]
],
[
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
[11, 12, 13, 14, 15],
[16, 17, 18, 19, 20],
[21, 22, 23, 24, 25]
]
];
arr.map(function(subArray, a) {
subArray.map(function(row, b) {
row.map(function (value, c) {
if (value % 6 === 0) { // кратные шести, например
console.log(value, a, b , c)
}
})
})
})
https://jsfiddle.net/8yk66kbk/