jonschlinkert/is-number

isNumber(new Number(5)) is false

hackhat opened this issue · 4 comments

I'd never use new Number but I think is a use case that should be handled... because is actually a number.

it will return true, what's your code?

I'm sorry, I see the lib of 4.0.0, so the feature is removed, I don't know why

The use of Number constructor new Number() is believed to be a bad practice by many so the lib is right in keeping things consistent

Closing, for the same reasons mentioned by @bodazhao in #18 (comment)