https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce