Validate required string - Node.js Date

Node.js examples for Date:Date Format

Description

Validate required string

Demo Code

Validator.validateRequired = function(str) {
    if (str.length !== 0) {
        return true;
    } else {/*from  w  w w  .j av  a2 s  .co m*/
        return false;
    }
};

Related Tutorials