---
title: "Michael Geary (@Geary) | Hashnode"
description: "Michael Geary (@Geary) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@Geary"
---

@Geary

# Michael Geary

@Geary · Joined July 2020

## Comments

[const sum = arr.reduce((result, item) => { result = result + item; return result; }); Since result is local to the callback, you can simplify this to: const sum = arr.reduce((result, item) => { return result + item; });](https://hashnode.com/posts/a-brief-introduction-to-javascript-map-filter-and-reduce-methods/5f0c090c3fe8405bdb8d8194/comment/5f1693ade37a46613e6fe777)

Comment · Article · Jul 21, 2020 · [A Brief Introduction to JavaScript Map, Filter and Reduce Methods](https://hashnode.com/posts/a-brief-introduction-to-javascript-map-filter-and-reduce-methods/5f0c090c3fe8405bdb8d8194)
