voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 661 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [increment](./database.increment.md)
## increment() function
Returns a placeholder value that can be used to atomically increment the current database value by the provided delta.
<b>Signature:</b>
```typescript
export declare function increment(delta: number): object;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| delta | number | the amount to modify the current value atomically. |
<b>Returns:</b>
object
A placeholder value for modifying data atomically server-side.