I don't exactly know the use of this snippet but contributors can recommend on this approach of `.reduce()`.