Closed buzzdecafe closed 9 years ago
would Number.isFinite
be a better option here ?
Thanks, but only use these functions to check if certain arguments were passed, so I think it's appropriate to treat NaN as part of that pipeline (you meant to pass a number, but you did something bad beforehand).
Anyway, I'm thinking of refactoring how that argument checking works anyway and I'll probably get rid of these checks.
unfortunately,
typeof NaN
isnumber
. I think that is not the behavior you want. This little patch fixes that.