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

174
Views
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
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!