futian.liu
2023-12-15 0fdac321828bffa833f7d0155a5c147d23bd78d8
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
    }
  }
}