Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

looping object

for (var prop in p) {
    if (!p.hasOwnProperty(prop)) {
        //The current property is not a direct property of p
        continue;
    }
    //Do your logic with the property here
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #looping #object
ADD COMMENT
Topic
Name
3+6 =