hy-shop-mer/plop-templates/utils.js

10 lines
154 B
JavaScript
Raw Permalink Normal View History

2024-03-22 15:50:26 +08:00
exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}