flatten with infinite depth

This commit is contained in:
f0x 2022-10-29 16:56:32 +02:00
parent a8fc604f4f
commit e1618bacda

View file

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