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

140
Views
Mover propiedades en objetos según su índice

He estado tratando de hacer esto y he buscado la respuesta en todas partes, pero nadie parece saber o tener el mismo problema.

Lo que quiero hacer es: tengo una matriz que se ve así

 const myArray = [ { nombre: 'String', definicion: 'Whatever.', duracion: 'Blah', id: "Blah", }, { nombre: 'Name', definicion: 'Short description.', duracion: 'time', id: "whatever again", }, { nombre: 'hello', definicion: 'this is descripción.', duracion: 'time', id: "the end", },

Usé map return (item. nombre, item. definición, etc.) y los tengo separados en diferentes divs, así que quería hacer nombre.onclick (transición CSS para que se muestre su definición) pero no funciona. Muestra todas las definiciones o ninguna. A veces muestra una definición 3 veces (o la cantidad de objetos en la matriz)

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!