Ad
  • Custom User Avatar

    I tend to disagree, this way of doing thing is similar to functional programming.
    I woulad have added a map step for the replace call.
    ALready said but of course a joining is better than this reduce combined with the get call.
    If you absolutely want to a use a reduce, maybe you can use the other version with a initializer
    ".reduce("", ...)