Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if a string contains digits js

function hasNumber(myString) {
  return /d/.test(myString);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #string #digits #js
ADD COMMENT
Topic
Name
4+7 =