---
title: "Discussion on \"How to Utilise the Reduce Method on an Array of Objects?\" | Hashnode"
description: "Discussion on \"How to Utilise the Reduce Method on an Array of Objects?\". const fruits = [\n  { name: 'Apple', quantity: 20 },\n  { name: 'Banana', quantity: 35 },\n  { name: 'Orange', quantity: 50 },\n  { name: 'Grapes', quantity: 15 }\n];\n\nconst totalQuantity = fruits.reduce((accumulator, fruit) => {\n  return accumulator + fr..."
url: "https://hashnode.com/posts/how-to-utilise-the-reduce-method-on-an-array-of-objects/64b4a1058eea8a6315c72fc8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Utilise the Reduce Method on an Array of Objects?](https://sksundram.site/how-to-utilise-the-reduce-method-on-an-array-of-objects?utm_source=hashnode&utm_medium=feed)

const fruits = \[ { name: 'Apple', quantity: 20 }, { name: 'Banana', quantity: 35 }, { name: 'Orange', quantity: 50 }, { name: 'Grapes', quantity: 15 } \]; const totalQuantity = fruits.reduce((accumulator, fruit) => { return accumulator + fr...

Jul 17, 2023 · 1 min read · sksundram.site  
Updated Mar 7, 2024  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#howtos](https://hashnode.com/tag/howtos)

## Written by

[Shailesh Kumar Sundram](https://hashnode.com/@sksundram)

@sksundram · Bengaluru, India

  
[View profile](https://hashnode.com/@sksundram)

Full-stack developer

Terminal &amp; Vim aficionado

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
