function recursiveIteration(object) {
for (var property in object) {
if (object.hasOwnProperty(property)) {
if (typeof object[property] == "object"){
recursiveIteration(object[property]);
}else{
//found a property which is not an object, check for your conditions here
}
}
}
}
网友评论