Please sign in to comment.
Replacing an each with reduce
The functionality has not changed, but the code is more elegant by using `reduce` instead of `each`. This way no accumulator needs to be declared, no explicit return is needed.
- Loading branch information...
Showing with 2 additions and 4 deletions.