Module: incrementByKey

(require("incrementByKey"))(obj, key) → {number}

Increment a value in an object, whether the key exists or not

Parameters:
Name Type Description
obj Object

The object

key string

The object property

Source:
Returns:

The new value

Type
number