diff --git a/aio/tools/transforms/angular.io-package/processors/createOverviewDump.js b/aio/tools/transforms/angular.io-package/processors/createOverviewDump.js index ab590315b0..aea0c9b1f5 100644 --- a/aio/tools/transforms/angular.io-package/processors/createOverviewDump.js +++ b/aio/tools/transforms/angular.io-package/processors/createOverviewDump.js @@ -1,23 +1,23 @@ -var _ = require('lodash'); - module.exports = function createOverviewDump() { return { $runAfter: ['processing-docs'], $runBefore: ['docs-processed'], $process: function(docs) { - var overviewDoc = { + const overviewDoc = { id: 'overview-dump', aliases: ['overview-dump'], path: 'overview-dump', outputPath: 'overview-dump.html', modules: [] }; - _.forEach(docs, function(doc) { + + docs.forEach(doc => { if (doc.docType === 'package') { overviewDoc.modules.push(doc); } }); + docs.push(overviewDoc); } };