Skip to content

Commit 7b31e67

Browse files
committed
fix: treating undefined key
1 parent 546c06e commit 7b31e67

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/recipes/to-object-chain-reduce-recipe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function unwindAndGroup(
1212
it = ing.flatten.call(it, (x: any) => {
1313
const current = key(x);
1414
return typeof current !== 'string' &&
15+
current &&
1516
typeof current[Symbol.iterator] === 'function'
1617
? ing.map.call(current, (item) => [item, x])
1718
: [[current, x]];

0 commit comments

Comments
 (0)