luqingyang
2023-10-30 b82ed8cbcc9e262f2bce2a662f8ce0d8c59b5d70
1
2
3
4
5
6
7
8
9
exports.notEmpty = name => {
  return v => {
    if (!v || v.trim === '') {
      return `${name} is required`
    } else {
      return true
    }
  }
}