Ad
  • Default User Avatar

    I'm confident you're aware, but achieving the same result can be done more efficiently using a single loop, specifically utilizing the 'reduce' function. There's no need for the additional 'map' operation.