futian.liu
2023-12-22 3e9a4b3480e6508f3c6f7ac8723509d8b1120d20
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
    }
  }
}