code: function resolveFileGlobPatterns(patterns, extensions) {
      extensions = extensions || [".js"];
  
      extensions = extensions.map(function(ext) {
          return ext.charAt(0) === "." ? ext.substr(1) : ext;
      });
  
      var processPathExtensions = processPath(extensions);
      return patterns.map(processPathExtensions);
  }
docs: ------------------------------------------------------------------------------ Public Interface ------------------------------------------------------------------------------ 
  Resolves the patterns into glob-based patterns for easier handling.
  @param   {string[]} patterns    File patterns (such as passed on the command line).
  @param   {string[]} extensions  List of valid file extensions.
  @returns {string[]} The equivalent glob patterns.