src/utils/parse.js
function isGlob(candidate) {
  if (typeof candidate === 'string' && candidate.length > 0) {
    return true;
  }
  if (Array.isArray(candidate) && candidate.length > 0) {
    return candidate.every(candidateEl => typeof candidateEl === 'string');
  }
  return false;
}
function isGlob(candidate) {
  if (typeof candidate === 'string' && candidate.length > 0) {
    return true;
  }
  if (Array.isArray(candidate) && candidate.length > 0) {
    return candidate.every(candidateEl => typeof candidateEl === 'string');
  }
  return false;
}
function isGlob ( candidate ) { if ( typeof candidate === 'string' && candidate . length > 0 ) { return true ; } if ( Array . isArray ( candidate ) && candidate . length > 0 ) { return candidate . every ( candidateEl => typeof candidateEl === 'string' ) ; } return false ; }
Utility function to test if a value COULD be a glob. A single string or
an Array of strings counts. Just because this returns true, however,
doesn't mean it is a glob that makes sense, just that it looks like one.

@param {String|Array} candidate
@return Boolean
Utility function to test if a value COULD be a glob . A single string or an Array of strings counts . Just because this returns true however doesn t mean it is a glob that makes sense just that it looks like one .