travel/admin/plop-templates/utils.js

3 lines
87 B
JavaScript
Raw Normal View History

2024-06-24 11:52:30 +08:00
exports.notEmpty = name => v =>
!v || v.trim() === '' ? `${name} is required` : true