Skip to content

Commit

Permalink
fix reduce bug when zero is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
j50n committed Nov 27, 2023
1 parent 847bc4d commit 57e6ab9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/enumerable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export class Enumerable<T> implements AsyncIterable<T> {
if (first) {
first = false;
if (zero === undefined) {
acc = item as U;
p = item as U;
continue;
} else {
acc = zero;
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"0.21.4"}
{"version":"0.21.5"}

0 comments on commit 57e6ab9

Please sign in to comment.