The solution function stringToNumber(s: string): number | undefined { const n = parseFloat(s) if (isNaN(n)) { return undefined } return n }.
確定! 回上一頁