code: function insertResolvedFiles(filesAndPatterns, resolvedFiles) {
    var allFiles = [];
  
    filesAndPatterns.forEach(function(fileOrPattern) {
      if (resolvedFiles[fileOrPattern]) {
        // Glob pattern: add all resolved files in its place.
        Array.prototype.push.apply(allFiles, resolvedFiles[fileOrPattern]);
      } else {
        // Regular file: just add it.
        allFiles.push(fileOrPattern);
      }
    });
  
    // Remove any duplicates.
    return underscore.unique(allFiles);
  }
docs: Once globs are resolved, inserts each resolved file list into the input in
  place of the glob pattern. Also removes any duplicate files (in case multiple
  patterns resolved to the same file).
  @param {!Array.<string>} filesAndPatterns
  @param {!Object.<string, !Array.<string>>} resolvedFiles Map from pattern to
  list of resolved files.
  @return {!Array.<string>}