title: How to ensure javascript addition instead of string concatenation (Not always adding integers)
body: <p>Through my javascript library, I end up with a string that represents a number. Now I want to preform an addition on that number without it doing a string concatenation instead. The solution is easy (
  <a href="https://stackoverflow.com/questions/460172/how-do-i-add-an-integer-value-with-javascript-jquery-to-a-value-thats-returni">How do I add an integer value with javascript (jquery) to a value that&#39;s returning a string?</a>, <a href="https://stackoverflow.com/questions/9081630/how-to-make-an-addition-instead-of-a-concatenation">How to make an addition instead of a concatenation</a>) if your number is always in integer. However my string could be a float or an integer, and at the time of the addition, and I don't know which it will be. Is there a way to make sure the addition happens regardless of whether it's a float or integer?</p>