Home > @firebase/database > increment
increment() function
Returns a placeholder value that can be used to atomically increment the current database value by the provided delta.
Signature:
export declare function increment(delta: number): object;
Parameters
Parameter | Type | Description |
---|---|---|
delta | number | the amount to modify the current value atomically. |
Returns:
object
A placeholder value for modifying data atomically server-side.