79293542

Date: 2024-12-19 08:28:01
Score: 0.5
Natty:
Report link
Array.prototype.reduce(callback, initialValue)

You simply didn't set an initial value (second argument) to .reduce. Therefore, the method automatically takes the first element as the accumulator (first argument) of the callback.

Refer to the docs

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Redskinsjo