TinyBase logoTinyBase

MapCell

The MapCell type describes a function that takes an existing Cell value and returns another.

(cell: CellOrUndefined): Cell
TypeDescription
cellCellOrUndefined

The current value of the Cell to map to a new value.

returnsCell

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.

Since

v1.0.0