lib/fs.js
// Check if a file's path contains any of the given substrings.
Check if a file's path contains any of the given substrings.
Check if a file ' s path contains any of the given substrings .
containsAny( file, matches ) {
      if( _.isArray(matches) ) {
        for( let i = 0; i < matches.length; i++ ) {
          const match = matches[i];
          if( utils.contains(file, match) ) return true;
        }
        return false;
      }
      else return utils.contains(file, matches);
    }
containsAny ( file , matches ) { if ( _ . isArray ( matches ) ) { for ( let i = 0 ; i < matches . length ; i ++ ) { const match = matches [ i ] ; if ( utils . contains ( file , match ) ) return true ; } return false ; } else return utils . contains ( file , matches ) ; }
Check if a file's path contains any of the given substrings.
Check if a file ' s path contains any of the given substrings .
// Handle multiple matches. // Check each match individually. // Get the match data. // Immediately exit if a match is found. // Return. // Otherwise, handle single matches.