Skip to content

Commit ea5be27

Browse files
committed
index.js: use array spread instead of concat
1 parent b8a70e1 commit ea5be27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ function precinct(content, options = {}) {
119119
}
120120

121121
function detectiveEs6Cjs(ast, detectiveOptions) {
122-
return detectiveEs6(ast, detectiveOptions).concat(detectiveCjs(ast, detectiveOptions));
122+
return [
123+
...detectiveEs6(ast, detectiveOptions),
124+
...detectiveCjs(ast, detectiveOptions)
125+
];
123126
}
124127

125128
/**

0 commit comments

Comments
 (0)