Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
¿Cómo recuperar todos los duplicados que tienen el mismo correo electrónico en una matriz de objetos en javascript?

Estoy buscando una función simple en js (si es posible en la versión Es6) para recuperar todos los duplicados de una matriz de objetos en el valor del email solo, por ejemplo:

 const array = [ {id: 1, email: 'test1@exemple.fr', nom: 'nom'}, {id: 2, email: 'test2@exemple.fr', nom: 'nom'}, {id: 3, email: 'test3@exemple.fr', nom: 'nom'}, {id: 4, email: 'test@exemple.fr', nom: 'nom'}, {id: 5, email: 'test4@exemple.fr', nom: 'nom'}, {id: 6, email: 'test5@exemple.fr', nom: 'nom'}, {id: 7, email: 'test6@exemple.fr', nom: 'nom'}, {id: 8, email: 'test@exemple.fr', nom: 'nom'}, {id: 9, email: 'test@exemple.fr', nom: 'nom'}, {id: 10, email: 'test@exemple.fr', nom: 'nom'}, {id: 11, email: 'test2@exemple.fr', nom: 'nom'}, {id: 12, email: 'test2@exemple.fr', nom: 'nom'}, ]

Y el resultado que quiero obtener es este:

 return = [ {id: 8, email: 'test@exemple.fr', nom: 'nom'}, {id: 9, email: 'test@exemple.fr', nom: 'nom'}, {id: 10, email: 'test@exemple.fr', nom: 'nom'}, { id: 11, email: 'test2@exemple.fr', nom: 'nom'}, {id: 12, email: 'test2@exemple.fr', nom: 'nom'} ]

Gracias por tu ayuda :)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!