Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

177
Vistas
Remove duplicate key from an array of objects

I need help in flattening this array of objects and remove the duplicate SWFIT key for each entry. Current array:

0: {SWIFT: 'GIBAXXXX', PARTICIPANTS: {…}}
1: {SWIFT: 'GIBAXXXX', SETTLEMENT_BANKS: {…}}
2: {SWIFT: 'IQAMXXXX', ISSUERS: {…}}
3: {SWIFT: 'IQAMXXXX', PARTICIPANTS: {…}}
4: {SWIFT: 'IQAMXXXX', SETTLEMENT_BANKS: {…}}
5: {SWIFT: 'CITIXXXX', ISSUERS: {…}}
6: {SWIFT: 'CITIXXXX', PARTICIPANTS: {…}}
7: {SWIFT: 'CITIXXXX', SETTLEMENT_BANKS: {…}}

So a needed result would be something like this:

0: {SWIFT: 'GIBAXXXX', PARTICIPANTS: {…}, SETTLEMENT_BANKS: {…}}
1: {SWIFT: 'IQAMXXXX', ISSUERS: {…}, PARTICIPANTS: {…}, SETTLEMENT_BANKS: {…}}
2: {SWIFT: 'CITIXXXX', ISSUERS: {…}, PARTICIPANTS: {…}, SETTLEMENT_BANKS: {…}}

I tried various ways to reduce this array into an array of objects but I simply could not figure it out.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda