Optional. Follows the reduce method and modifies the output.

The finalize function receives as its arguments a key value and the reducedValue from the reduce function. Be aware that:

  *  The finalize function should not access the database for any reason.

  *  The finalize function should be pure, or have no impact outside of the function (i.e. side effects.)

  *  The finalize function can access the variables defined in the scope parameter.

