Added 'var' to example to be strict mode compliant

closes #206

[ci skip]
This commit is contained in:
Sebastian Metzger 2015-04-14 11:28:00 +02:00 committed by SheetJS
parent f113fb1bf1
commit 1b44629a2c

View File

@ -238,7 +238,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));