Created
April 19, 2013 05:48
-
-
Save jesse1981/5418378 to your computer and use it in GitHub Desktop.
Search a string of having a number value.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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