toArray() {
        const a = [];
        this.iterate((x, y) => {
            a.push({x, y});
        });
        return a;
    }
/**
     * Returns an array of {x, y} for each marked cell
     */
Returns an array of {x, y} for each marked cell
Returns an array of { x y } for each marked cell
toArray() {
        const a = [];
        this.iterate((x, y) => {
            a.push({x, y});
        });
        return a;
    }
toArray ( ) { const a = [ ] ; this . iterate ( ( x , y ) => { a . push ( { x , y } ) ; } ) ; return a ; }
Returns an array of {x, y} for each marked cell
Returns an array of { x y } for each marked cell