Polyfill reduce.