MapCell
The MapCell
type describes a function that takes an existing Cell
value and returns another.
(cell: Cell | undefined) => Cell
A MapCell
can be provided in the setCell
method to map an existing value to a new one, such as when incrementing a number. See that method for specific examples.