石广澎
2023-12-01 0ff4be6c9cb9bc215acd4b4c78122da7e0d7140f
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
    }
  }
}