Answers for "js regex checking to see if string doesnt have numbers"

1

check if a string contains digits js

function hasNumber(myString) {
  return /\d/.test(myString);
}
Posted by: Guest on July-22-2020

Code answers related to "js regex checking to see if string doesnt have numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language