4
Answers

find the values in a json object starting with one value

prasanna p

prasanna p

5y
599
1
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)