.subtract()
Subtracts the provided value from the value of the provided key. If no existing number, the provided value will be subtracted from 0 (zero).
Last updated
Subtracts the provided value from the value of the provided key. If no existing number, the provided value will be subtracted from 0 (zero).
Last updated
Parameter
Description
key
The key that will have its value decremented
value
The value to decrement
Returns
Description
The updated data from the provided key's root