+ 23
/^\d+?$/gmi.test(input) <-- number
input==="" <-- empty string
/^\D+?$/gmi.test(input) <-- string
13th Apr 2017, 7:31 AM
Valen.H. ~

Often have questions like this?
Learn more efficiently, for free:
Hot today
AI Takeover
2 Votes
Using Python on VScode
1 Votes
Python Developer
0 Votes
Average of Two Numbers
0 Votes
Hearts
0 Votes