String minimum validator - Node.js String

Node.js examples for String:Parse

Description

String minimum validator

Demo Code

  min: function(data, minimun){
    if(data.trim().length >= minimun){
      return true;
    }else{/*from   www.j a v  a  2 s.co  m*/
      return false;
    }
  },

Related Tutorials