In javascript you can traverse an array like it does in other languages like C ++ 11, for example like this:
for(auto i : array) {
// imprimir i
}
With javascript I have been able to do this:
for(var i in array) {
// imprimir array[i]
}
The issue is that i does not contain the current items of the array but the index, what I'm asking is if it were possible for i to point to an array value on each pass like C ++ 11 does.