Will sum up 2 numbers with a given limit. If that limit would've been exceeded by the addition, the limit is returned.
returns the sum if it didn't exceed the limit, else the limit will be returned.
the maximum number to be returned of sum.
number to be summed up can also be an array of numbers
Optional
number to be summed up
Generated using TypeDoc
Will sum up 2 numbers with a given limit. If that limit would've been exceeded by the addition, the limit is returned.
Returns
returns the sum if it didn't exceed the limit, else the limit will be returned.