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

115
Views
How to concatenate two dependent variables inside a map in React

I am trying to concatenate 2 variables inside a map function, but I can't get it working. One depend of the other. I need to get the sequence of objects e.g. drink.strIngredient1, drink.strIngredient2, drink.strIngredient3... and so on.

const currentIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

{ ingredientIndex.map((currentIndex) => (
   `${drink.strIngredient + currentIndex}`
))}

Does anyone know how to do it?

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!