incrementProperty (keyName, increment) Numberpublic
Set the value of a property to the current value plus some amount.
person.incrementProperty('age');
team.incrementProperty('score', 2);
Parameters:
-
keyName
String - The name of the property to increment
-
increment
Number - The amount to increment by. Defaults to 1
Returns:
-
Number - The new property value
Please login to continue.