Not a member? Signup now
For example:
const number = !Number.isNaN(Number(stringNumber)) ? Number(stringNumber) : NaN;