remove flattenDepth

seems that tdd script doesn't remove old removed snippets and their tests
This commit is contained in:
Stefan Feješ
2018-01-12 21:21:00 +01:00
parent c1ad0abebb
commit 779e18c08e
2 changed files with 0 additions and 17 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), []);

View File

@ -1,13 +0,0 @@
const test = require('tape');
const flattenDepth = require('./flattenDepth.js');
test('Testing flattenDepth', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof flattenDepth === 'function', 'flattenDepth is a Function');
//t.deepEqual(flattenDepth(args..), 'Expected');
//t.equal(flattenDepth(args..), 'Expected');
//t.false(flattenDepth(args..), 'Expected');
//t.throws(flattenDepth(args..), 'Expected');
t.end();
});