check if string is number node js code example
Example: how to check if a string is an integer javascript
isNaN(num) // returns true if the variable does NOT contain a valid number
isNaN(num) // returns true if the variable does NOT contain a valid number