considering isNaN(true) returns false, what do you suggest to be used to check for a number?
Abhay Joshi
2
`Number.isFinite(x)` is how you would check if an input is a number (excluding -Infinity, +Infinite, and NaN).
Imo I wouldn’t recommend accepting Number wrappers (new Number(x)) unless you coerce then to Number primitives as they will not work with anything that doesn’t automatically coerce (ex: `Number.isInteger(new Number(5))` returns false)