From e1618bacdadabf82356e79ac3750cbbde655336c Mon Sep 17 00:00:00 2001 From: f0x Date: Sat, 29 Oct 2022 16:56:32 +0200 Subject: [PATCH] flatten with infinite depth --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 705dc1e..ba443fd 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ function unpackNestedEithers(errors) { } else { return error; } - })).flat(); + })).flat(Infinity); } function hasNestedPaths(error) {