prasanna p

prasanna p

  • 1.3k
  • 470
  • 104k

find the values in a json object starting with one value

Oct 23 2019 5:30 AM
hi friends,
 
I have json object like this
0:{id:"pf-elevator3"}
1:{id:pf-elevator}
2: {id:"p-s-12"}
 
now what I am looking is i need to replace the json array values starting with "pf-" to undefined in the array.
 
I tried with startswith and Exists getting function is not defined error.
 
how to acheive this output?please help me
 

Answers (4)