-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with isNumeric
#127
Comments
The JSDoc is wrong here, |
Sorry, I perhaps buried the lede here. That call to |
Ah yes, good point. I'll remove that. |
I'm not sure what is going on in this function:
According to the JSDoc,
n
is presumed to be a number (not a string?). This is substantiated by thetypeof n === "number"
conditional. WhileparseFloat
can take a number as an argument, what is the point if we know thatn
is already a number (which we know is the case because of the type check)?The text was updated successfully, but these errors were encountered: