JavaScript
JavaScript reduce was called on an empty array without an initial value
JavaScript could not reduce an empty array because no initial accumulator value was provided.
JavaScript
JavaScript could not reduce an empty array because no initial accumulator value was provided.
Observed message
TypeError: Reduce of empty array with no initial value
Why it happens
How to fix it
Official reference
MDN: TypeError: Reduce of empty array with no initial valueRelated errors
Explore more