---
title: "Discussion on \"JavaScript: Remove duplicates from an array of objects based on key\" | Hashnode"
description: "Discussion on \"JavaScript: Remove duplicates from an array of objects based on key\". var users = [ \n  {\n    name: 'Rahul', email: 'test1@test.com' \n  }, \n  {\n    name: 'Rajeev', email: 'test2@test.com' \n  }, \n  {\n    name: 'Revanth', email: 'test2@test.com' \n  }\n];\n\nlet emailIds = users.map( (item) => { \n  return item.email;\n}) \n\nlet..."
url: "https://hashnode.com/posts/javascript-remove-duplicates-from-an-array-of-objects-based-on-key/630c3b0656df9e8e50250375"
---

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

Discussion

# [JavaScript: Remove duplicates from an array of objects based on key](https://harikrishna.hashnode.dev/javascript-remove-duplicates-from-an-array-of-objects-based-on-key?utm_source=hashnode&utm_medium=feed)

var users = \[ { name: 'Rahul', email: 'test1@test.com' }, { name: 'Rajeev', email: 'test2@test.com' }, { name: 'Revanth', email: 'test2@test.com' } \]; let emailIds = users.map( (item) => { return item.email; }) let...

Jan 4, 2022 · 1 min read · harikrishna.hashnode.dev  
Read the article

-   [#remove-duplicates-in-an-array](https://hashnode.com/tag/remove-duplicates-in-an-array)

## Written by

[Hari Krishna Anem](https://hashnode.com/@hkrishna)

@hkrishna · Hyderabad, India

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

Full stack developer

Full stack developer (ReactJS, NodeJS, JavaScript, PHP, SQL)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
