All files / src/validator required.js

0% Statements 0/3
0% Branches 0/5
0% Functions 0/1
0% Lines 0/3
1 2 3 4 5 6 7 8               
export default function (value) {
  if (value === undefined || value === null || value === '') {
    return false;
  }
 
  return !! String(value).trim().length;
}