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

162
Views
jquery object get value by known key
Object { "07.03.2022": "106", "08.03.2022": "114" }

i want to get the value (e.g. 114) from the known date 08.03.2022

I've already managed to do it the other way around:

const keyx = Object.keys(response.activeDates)[Object.values(response.activeDates).indexOf('114')];

but how can i get the 114 as result from the known 08.03.2022 ?

this don´t work:

var xto = "08.03.2022";
console.log(response.activeDates.xto);

Thanks!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Did you try like this:

console.log(response.activeDates[xto])

When you are using xto it will look for the key named xto and not the value of that variable.

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!