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

218
Views
¿Cómo puedo manipular objetos anidados en es6?

Tengo que actualizar un índice entre 3 opciones. ¿Cómo puedo manipularlas? Depende de la opción en la que un usuario hizo clic en la interfaz de usuario.

CÓDIGOS

 [{ future: false, NumberOfDay: 0, HourOption: "" }, { within_date: false, start_date: "", end_date: "" }, { indefinitely: false }]

Rendimiento esperado

en caso de que el usuario seleccione la primera opción future and numberOfDay would be y la salida podría verse como la siguiente en el index one of esta matriz

 [{ future: true, NumberOfDay: Entered_Number_From_User, HourOption: "" }, { within_date: false, start_date: "", end_date: "" }, { indefinitely: false }]

en caso de que el usuario seleccione la segunda opción en la interfaz de usuario

La salida será

 [{ future: false, NumberOfDay: 0, HourOption: "" }, { within_date: true, start_date: `SELECTED_DATE_FROM_UI`, end_date: `SELECTED_DATE_FROM_UI` }, { indefinitely: false }]
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!