ran npm run tester -> logged invertKeyValues test are invalid

This commit is contained in:
King
2018-01-24 06:29:38 -05:00
parent d835cf4b40
commit 737acd870d
270 changed files with 1141 additions and 872 deletions

8
test/unzip/unzip.js Normal file
View File

@ -0,0 +1,8 @@
const unzip = arr =>
arr.reduce(
(acc, val) => (val.forEach((v, i) => acc[i].push(v)), acc),
Array.from({
length: Math.max(...arr.map(x => x.length))
}).map(x => [])
);
module.exports = unzip