2
0

utils.js 87 B

12
  1. exports.notEmpty = name => v =>
  2. !v || v.trim() === '' ? `${name} is required` : true