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; }