The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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.