.add()
Adds the provided value to the value of the provided key. If no existing number, the provided value will be added to 0 (zero).
add(key, value)
Parameter | Description |
key | The key that will have its value incremented |
value | The value to increment |
Also allows the use of dot notation:
Last updated