jesse1981
4/19/2013 - 5:48 AM

Search a string of having a number value.

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