I\'m hoping there\'s something in the same conceptual space as the old VB6 IsNumeric() function?
IsNumeric()
Using plain JavaScript:
Number.isNaN(Number('1')); // false Number.isNaN(Number('asdf')); // true
Using Lodash:
_.isNaN(_.toNumber('1')); // false _.isNaN(_.toNumber('asdf')); // true