Iterates over an object via its Symbol.iterator or over the values of an array.