Skip to content

Commit ee1ef85

Browse files
sonukapoorkara
authored andcommitted
refactor(docs-infra): refactors createOverviewDump (angular#37141)
This commit removes the dependency on the `lodash` module and refactors the `createOverviewDump` method. PR Close angular#37141
1 parent efef044 commit ee1ef85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aio/tools/transforms/angular.io-package/processors/createOverviewDump.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
var _ = require('lodash');
2-
31
module.exports = function createOverviewDump() {
42

53
return {
64
$runAfter: ['processing-docs'],
75
$runBefore: ['docs-processed'],
86
$process: function(docs) {
9-
var overviewDoc = {
7+
const overviewDoc = {
108
id: 'overview-dump',
119
aliases: ['overview-dump'],
1210
path: 'overview-dump',
1311
outputPath: 'overview-dump.html',
1412
modules: []
1513
};
16-
_.forEach(docs, function(doc) {
14+
15+
docs.forEach(doc => {
1716
if (doc.docType === 'package') {
1817
overviewDoc.modules.push(doc);
1918
}
2019
});
20+
2121
docs.push(overviewDoc);
2222
}
2323
};

0 commit comments

Comments
 (0)