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

111
Views
Cómo obtiene valor esta variable

Nuevo en javascript. Reutilicé el código de un repositorio interno para una herramienta interna. Veo esta función:

 function getItemIndex(itemList, item) { const isItemPresent = (items) => items[0] === item; const itemIndex = itemList.findIndex(isItemPresent); return itemIndex; }

No entiendo cómo items obtienen su valor.

No se envía en los argumentos de la función. El archivo completo no tiene ninguna variable con el mismo nombre.

¿Puede alguien explicar cómo funciona? O señale el concepto de javascript relacionado con esto para que pueda seguir leyendo. Las funciones de flecha dijeron sobre (parameter) => expression . Pero este parámetro no está definido en ninguna parte por lo que veo.

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!