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

95
Views
GAS provoca la excepción `Los parámetros no coinciden con la firma del método` al asignar una función a una matriz

Este código no funciona:

 const files = [ 'file-id0', 'file-id1' ].map(DriveApp.getFileById)

con la excepción Exception: The parameters (String,number,number[]) don't match the method signature for DriveApp.getFileById.

Aunque esto funciona bien:

 const files = [ 'file-id0', 'file-id1' ].map(id=>DriveApp.getFileById(id))

¿Cuál es la diferencia de estos códigos? No puedo entender por qué el primero no funciona.

Tenga en cuenta que DriveApp#getFileById solo toma un argumento como se describe en el documento . Sin embargo, siento que la excepción es extraña.

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!