TinyBase logoTinyBase

MapValue

The MapValue type describes a function that takes an existing Value and returns another.

(value: ValueOrUndefined): Value
TypeDescription
valueValueOrUndefined

The current Value to map to a new Value.

returnsValue

A MapValue can be provided in the setValue method to map an existing Value to a new one, such as when incrementing a number. See that method for specific examples.

Since

v3.0.0