change flatten to Array#flat (Node 10.x EOL) #1

Open
f0x wants to merge 2 commits from f0x-validatem/either:master into master
Showing only changes of commit e1618bacda - Show all commits

View file

@ -18,7 +18,7 @@ function unpackNestedEithers(errors) {
} else {
return error;
}
})).flat();
})).flat(Infinity);
}
function hasNestedPaths(error) {