From 1b44629a2ce75ed84d21f9d270102ac0067034fd Mon Sep 17 00:00:00 2001 From: Sebastian Metzger Date: Tue, 14 Apr 2015 11:28:00 +0200 Subject: [PATCH] Added 'var' to example to be strict mode compliant closes #206 [ci skip] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b495738..dab8025 100644 --- a/README.md +++ b/README.md @@ -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));