check if string is number with es6 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