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

94
Views
Datos de caché de filtro de Javascript

¿Cómo puedo filtrar el Event_Type ? lo que quiero es obtener el valor de Event_Type que es el MT

este es mi código actual

 if (cachedData) { let cachedDatas = JSON.parse(cachedData); for (var data in cachedDatas) { var keys = data == 'Event_Type' ? 'R150274705' : data; console.log("keys", keys) let code = data.filter((val) => { return cachedDatas['Event_Type'] == val.code; }) } }

estos son los datos

 {"Event_Type":"MT","Subject":"","startDate":"07/05/2022 11:43 AM","startDateRaw":"2022-05-07T03","description":""}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

¿Qué tal una solución muy simple como esta?

 const jsonStr='{"Event_Type":"MT","Subject":"","startDate":"07/05/2022 11:43 AM","startDateRaw":"2022-05-07T03","description":""}'; console.log(JSON.parse(jsonStr).Event_Type);

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!