Added 'var' to example to be strict mode compliant #206

Closed
SebastianMetzger wants to merge 1 commits from patch-1 into master

View File

@ -180,7 +180,7 @@ This example iterates through every nonempty of every sheet and dumps values:
var sheet_name_list = workbook.SheetNames;
sheet_name_list.forEach(function(y) { /* iterate through sheets */
var worksheet = workbook.Sheets[y];
for (z in worksheet) {
for (var z in worksheet) {
/* all keys that do not begin with "!" correspond to cell addresses */
if(z[0] === '!') continue;
console.log(y + "!" + z + "=" + JSON.stringify(worksheet[z].v));