remove flattenDepth tests

This commit is contained in:
Stefan Feješ
2018-01-11 09:55:24 +01:00
parent 683553a787
commit b81f540f2e
2 changed files with 0 additions and 18 deletions

View File

@ -1,4 +0,0 @@
module.exports = flattenDepth = (arr, depth = 1) =>
depth != 1
? arr.reduce((a, v) => a.concat(Array.isArray(v) ? flattenDepth(v, depth - 1) : v), [])
: arr.reduce((a, v) => a.concat(v), []);