validate.js 109 B

1234
  1. export function validNull(str) {
  2. let data = str && str !== '' ? str.trim() : '';
  3. return Boolean(data);
  4. }