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

155
Views
Recuperar elemento hijo sin conocer el padre

Me gustaría saber si es posible obtener el nombre del objeto 1 y el objeto 2 sin especificar 'objeto 1' y 'objeto 2'.

 let tableauObj = [ objet1: {name: Albert}, objet2: {name: Florence}]
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede hacer referencia a objetos en una matriz por su índice dentro de la matriz. Haga clic en estos enlaces para obtener más información sobre objetos y matrices en JavaScript.

 let tableauObj = [ {name: "Albert"}, {name: "Florence"}]; // The object with the name property of "Albert" // is at index zero of the tableauObj array: console.log(tableauObj[0].name); // The object with the name property of "Florence" // is at index one of the tableauObj array: console.log(tableauObj[1].name);

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!