SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this to only monitor own properties of the object:
var arr = []; for (var key in p) { if (p.hasOwnProperty(key)) { arr.push(p[key]); } }