Run »
thisarray <- c(1:24) multiarray <- array(thisarray, dim = c(4, 3, 2)) 2 %in% multiarray
[1] TRUE