Is string value integer - Node.js String

Node.js examples for String:Parse

Description

Is string value integer

Demo Code

Validator.isInteger = function(value) {
    if (parseInt(value, 10)) {
        return true;
    } else {/*from  w  ww.j a  v  a  2s .c  o m*/
        return false;
    }
};

Related Tutorials