Method of Traversing Map Object in js
- 2021-07-04 18:39:13
- OfStack
Method of Traversing Map Objects in js
console.log(jsonData);// Firefox console printout: Object { fileNumber=" Document number ", fileName=" File name "}
for(var key in jsonData)
console.log(" Attributes: " + key + ", Value: "+ jsonData[key]);
}
Printout:
Attribute: fileNumber, Value: File number
Attribute: fileName, Value: File name