firstNodeWithData

Returns the first tile in the grid (row-wise from left to right) that contains the requested data.

Return

The first matching tile.

Parameters

data

The value to look for in the grid.

Throws

If no tile with matching data exists.