Files
web_huangguo2_admin/plop-templates/utils.js
T
2026-09-29 16:54:06 +08:00

10 lines
154 B
JavaScript
Executable File

exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}