A simple example of traversing an Map object in js
- 2021-07-09 07:01:44
- OfStack
Examples are as follows:
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