Calls a function for each member of an array or object until either
one of them returns true (in which case any
returns true) or
we run out of elements (in which case any
returns false).
object
Object or array to be iterated through.
function
Function to call with two arguments: the key
of the element (or index in the case of an array) and the value;
should return a boolean.