I have a JavaScript object like the following:
var p = {
"p1": "value1",
"p2": "value2",
"p3": "value3"
};
Presently I need to loop through all
p
elements (
p1
,
p2
,
p3
...) And get their keys and qualities. How might I do that?
I can alter the JavaScript object if essential. My definitive objective is to loop through some key worth sets and if possible I need to try not to utilize
eval
.