toArray() {
        const result = [];
        this.iterate(item => { result.push(item); return true; });
        return result;
    }
Calls the callback for every item.
Stops when the callback returns false.