utils.js 154 Bytes edit raw blame history 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 } } }