Node.js examples for String:Parse
Converts the string to an integer value
/**//from www . j a v a2 s.c o m * converts the string to an integer value * @param Integer base * @return Integer or NaN */ toInt: function(base) { return parseInt(this, base === undefined ? 10 : base); },