經安全檢測,此網站為安全網站,請放心前往原始網址!

javascript - How to check digit from string - Stack Overflow

I have getting string. I want to check string have any digit. The string ... function hasDigit(yourString) { return yourString.match(/\d/) !== null; }.

stackoverflow.com

網址安全性掃描由 google 提供