not-number checks if the number you provided is not a number const notnumber = require('not-number'); notnumber(40) // => false notnumber('a') // => true notnumber(1/0) // => true notnumber('number') // => true That's it Buy Me A Coffee