dist/vue-validator.common.js
function maxlength (val, max) {
  if (typeof val === 'string') {
    return isInteger(max, 10) && val.length <= parseInt(max, 10)
  } else if (Array.isArray(val)) {
    return val.length <= parseInt(max, 10)
  } else {
    return false
  }
}
function maxlength (val, max) {
  if (typeof val === 'string') {
    return isInteger(max, 10) && val.length <= parseInt(max, 10)
  } else if (Array.isArray(val)) {
    return val.length <= parseInt(max, 10)
  } else {
    return false
  }
}
function maxlength ( val , max ) { if ( typeof val === 'string' ) { return isInteger ( max , 10 ) && val . length <= parseInt ( max , 10 ) } else if ( Array . isArray ( val ) ) { return val . length <= parseInt ( max , 10 ) } else { return false } }
maxlength
This function validate whether the maximum length.
maxlength This function validate whether the maximum length .