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

91
Views
Asignar 2 matrices en Javascript

Estoy tratando de mostrar el contenido de 2 matrices contenidas en un objeto. Cuando mapeo RType.information.Type, se muestra el contenido de la matriz "Tipo". Pero no pasó nada si quiero mostrar ambos (Tipo [] y Precio []). Intenté muchas cosas pero nada funciona ... ¡Si alguien puede ayudarme, hágamelo saber!

CÓDIGO JS

 RType.information.Type.map(function (type) { RType.information.Price.map(function (price) { return m( m('td.item-name', m('h4', `CLASS: ${type}`)), m('td.item-name', m('h4', `PRICE: ${price}`)), ), )}, )},

OBJETO

 var RType = { information : { Type : ["value1", "value2"], Price : ["112", "200"], },
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Probablemente estés buscando algo como esto:

 var RType = { information : { Type : ["value1", "value2"], Price : ["112", "200"], }}; RType.information.Type.map((e, i) => console.log('type: ' + e + ', price: '+ RType.information.Price[i]));

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!