jonschlinkert/is-number

Should strings with a number and whitespaces pass?

vladshcherbin opened this issue · 2 comments

Hey, should a string with whitespaces be a number:

var isNumber = require('is-number')
console.log(isNumber('   3 ')) // -> true

I'd expect it to be false.

Sorry, my bad 🤦‍♂️

@vladshcherbin don't feel bad, this was a perfectly valid question. thanks for the issue