futian.liu
2023-12-25 bb63cd5a6476fcddea478b746443730523028bdc
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
    }
  }
}