Codacy style changes for test files
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
const flatten = (arr, depth = 1) =>
|
||||
arr.reduce((a, v) => a.concat(depth > 1 && Array.isArray(v) ? flatten(v, depth - 1) : v), []);
|
||||
|
||||
module.exports = flatten;
|
||||
module.exports = flatten;
|
||||
|
||||
Reference in New Issue
Block a user