engine/core.js
/**
       Execute the given callback for each cell in this field.
       Execution goes per column, top to bottom in the column,
       left to right to the next column.

       cb: function (cell)
     */
Execute the given callback for each cell in this field.
Execution goes per column, top to bottom in the column,
left to right to the next column.

function (cell)
Execute the given callback for each cell in this field . Execution goes per column top to bottom in the column left to right to the next column . function ( cell )
forEachCell(cb) {
        for (let x = 0; x < this.width; x++) {
            for (let y = 0; y < this.height; y++) {
                cb(this.cells[x][y]);
            }
        }
    }
forEachCell ( cb ) { for ( let x = 0 ; x < this . width ; x ++ ) { for ( let y = 0 ; y < this . height ; y ++ ) { cb ( this . cells [ x ] [ y ] ) ; } } }
Execute the given callback for each cell in this field.
Execute the given callback for each cell in this field .