Skip to content

Instantly share code, notes, and snippets.

@jesse1981
Created April 19, 2013 05:48
Show Gist options
  • Save jesse1981/5418378 to your computer and use it in GitHub Desktop.
Save jesse1981/5418378 to your computer and use it in GitHub Desktop.
Search a string of having a number value.
function hasNum(val) {
for (var i in val) {
if (!isNaN(parseInt(val[parseInt(i)]))) return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment