Reduce
Array.prototype.reduce and the optional initial value
Today I learned about the subtlety of the optional initialValue parameter for the Array prototype's reduce method in JavaScript. This is almost too trivial to write about, but I was surprised to...