Skip to content

Commit 1ea5f9b

Browse files
vladimyragnivade
authored andcommitted
Use lodash #flatten
1 parent ec8407f commit 1ea5f9b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/utils.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
const fs = require('fs-extra');
22
const path = require('path');
33
const glob = require('glob');
4+
const flatten = require('lodash/flatten');
45
const promiseMap = require('p-map');
56

6-
const flatten = (arr) => {
7-
return arr.reduce((acc, it) => {
8-
return acc.concat(it);
9-
}, []);
10-
};
11-
127
module.exports = {
138
parsePlatform(pagefile) {
149
return path.dirname(pagefile);

0 commit comments

Comments
 (0)