Calls a function for each member of an array or object until either
one of them returns false (in which case all
returns false) or
we run out of elements (in which case all
returns true).
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.