Coffeescript: how do I convert a string to a number?
coffeescript
Solution
Use the javascript `parseInt` function.
number = parseInt( stringToParse, 10 );
Reference is here.
Remember, coffeescript is just javascript after it's compiled
Problem
I am building a JSON object that is sent in a POST request. This object has properties that need to be converted from string type to integer type before sending. How does one do that with coffeescript?