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