Published
- 1 min read
check if char is number js
The solution for this is noted below
check if char is number js
Solution
function is_numeric(str) {
return /^\d+$/.test(str)
}
Try other methods by searching on the site. That is if this doesn’t work