utils.js 87 B

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