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

103
Views
¿Cuál es el problema en esta desestructuración? [['h1', 'texto'].forEach( (caso: [Componente, afirmación]) => { console.log(Componente, afirmación); });

Soy nuevo en la deduplicación de matriz, esto tiene un error de sintaxis, pero no sé cómo solucionarlo.

 const txt = 'this is a tes'; [['h1', 'render an h1 tag'], ['p', 'render ap tag'], [Text, 'render Custom component']].forEach( (case: [Component, assertion]) => { console.log(Component,assertion); });

¿Podrías ayudarme?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tienes un error tipográfico, simplemente elimina "case:"

 const txt = 'this is a tes'; [['h1', 'render an h1 tag'], ['p', 'render ap tag'], [Text, 'render Custom component']].forEach( ([Component, assertion]) => { console.log(Component,assertion); });
about 4 years ago · Juan Pablo Isaza Report
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!