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

160
Views
TypeError: propiedad no definida de la matriz

Estoy haciendo un visualizador de algoritmos de clasificación y recibo este error (No se pueden leer las propiedades de undefined (leyendo 'mapa')) en la línea let bars = this.state.array.map((value, index) => aquí está mi código El código completo en el siguiente enlace de error en la línea (165): https://codebeautify.org/alleditor/y220e1b19

Gracias de antemano

 render() { let bars = this.state.array.map((value, index) => // console.log(`The ${index} is ${ceo}`); { return ( <Bar key={index} index={index} length={value} color={this.state.colorKey[index]} changeArray={this.changeArray} /> ); });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

¿Debería definirse render como?

 Render = () => { }

Si lo anterior no ayuda, haz que pongas un punto de interrupción para ver qué parte de

 this.state.array.map((value, index) =>

¿es indefinido?

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!