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

104
Views
¿Cómo puedo mantener los valores de Array1 cuando no existen en array2 usando GAS?

Las otras publicaciones que he visto tratan sobre arreglos 1D, así que...

Matriz1

 [ ["PE","151"], ["PE","160"], ["PE","188"] ]

matriz 2

 [ ["PE","193"], ["PE","173"], ["PE","188"] ]

Resultado Esperado

 [ ["PE","151"], ["PE","160"] ]

Intenté usar filter , pero no estoy seguro de poder obtener el elemento para comparar.

 const newItems = Array1.filter(el => Array2[1].indexOf(el[1]) === -1)

¡Gracias!

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!