-
Notifications
You must be signed in to change notification settings - Fork 30
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
fix is-number example #129
base: main
Are you sure you want to change the base?
Conversation
i'd like more opinions on this it aligns the code with what is-number does, but you could quite easily argue what is-number does is a waste of time the extra check is to make sure someone doesn't pass I suspect the majority would be fine with just |
is-number does not actually check if a number is a number even... it check if a value is either a number or a number inside a string |
indeed, which is what my second example would achieve: the extra logic is checking if the number is i'm saying we probably don't need to do any of that because it isn't the common use case |
I think it's best not to ask to replace with typeof, in case somebody's relying on string parsing |
that is what maybe im not being clear enough, let me try explain again: the code you've added here (and what
what i'm saying is we shouldn't be emulating what
recommend what you want to see used, rather than what is currently used |
ah alright, sorry now I get it I'll update my PR accordingly |
No description provided.