typescript parse int code example
Example 1: typescript string to number
var x = "32";
var y: number = +x;//the "+" converts string to number
Example 2: parseint function javascript
function convertToInterger(mystring) {
return parseInt(mystring);
}
console.log(convertToInterger("42"));