exports.notEmpty = name => {
  return v => {
    if (!v || v.trim === '') {
      return `${name} is required`
    } else {
      return true
    }
  }
}

exports.notEmpty = name => v =>
  !v || v.trim() === '' ? `${name} is required` : true

set trim => trim() (#3254)