All files / src/preds notEmpty.ts

28.57% Statements 2/7
0% Branches 0/4
0% Functions 0/1
28.57% Lines 2/7
1 2 3 4 5 6 7 8 9  15x              
export default function notEmpty( x: String | Array<any> ) {
  if ( !x ) {
    return false;
  } else if ( x.length === 0 ) {
    return false;
  } else {
    return true;
  }
}