ts converter string to int code example Example: string to int typescript Number('123') //123 Number('xxx') //NaN