forEach

forEach(x, callback)

Iterates over all elements of a matrix/array, and executes the given callback function.

Try it yourself:

See also:
All functions