Add an amount
to a value
, limiting the maximum result to max
.
name | type | description |
---|---|---|
value | number |
The value to add to. |
amount | number |
The amount to add. |
max | number |
The maximum value to return. |
The resulting value.