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.