futian.liu
2023-12-12 07cbbd39cfb448b7b3a78388308cda727be34569
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
    }
  }
}