fe-drone-ci/plop-templates/utils.js

10 lines
154 B
JavaScript
Raw Normal View History

2019-03-22 10:22:14 +00:00
exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}