ctrl + k
On This Page
increment
decrement
Number Helpers
Number Helpers are methods available on ReactiveVar instances that contain numeric values. These helpers provide convenient ways to manipulate and update numeric reactive variables.
increment
Increases the value of the ReactiveVar by a specified amount or by 1 if no amount is provided.
Syntax
Parameters
Name | Type | Description |
---|---|---|
amount | Number | (Optional) The amount to increment by. Defaults to 1 if not specified. |
Usage
decrement
Decreases the value of the ReactiveVar by a specified amount or by 1 if no amount is provided.
Syntax
Parameters
Name | Type | Description |
---|---|---|
amount | Number | (Optional) The amount to decrement by. Defaults to 1 if not specified. |