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

92
Views
How to use a string value inside a javascript object path

I have extracted the following from a string and assigned it to arrPath , i.e.:

arrPath = "myArray[0]";

I also have an object path that points to a value but I need to take the value of arrPath and use this in my object path, i.e.

myPath.sheet.value.arrPath.info.status

Unfortunately this is not working for me as I basically need the path to look like the following:

myPath.sheet.value.myArray[0].info.status

in order to access the value.

I have had a look at other potential solutions but can't seem to locate one that will assist with my question.

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!