title: JavaScript reduce returns object on Array of objects
body: <p>I have an array of objects, let's say <code>[{x:2, y:3}, {x:5, y:4}]</code> and i call <code>reduce((c, n) =&gt; c.y + n.y);</code> on it. It obviouslly returns <code>7</code>.</p>
  
  <p>However, if the array contains a single object, let's say <code>[{x:2, y:4}]</code> the same reduce call will return the object itself <code>{x:2, y:4}</code>. </p>
  
  <p>Is this normal behaviour? Am I obliged to check if the result is an object and not an number afterwards?</p>