From bbafb9a5126cc13db57776f7ab28e3f7736cfa14 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 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ccb430c..c03ee80 100644 --- a/README.md +++ b/README.md @@ -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)); -- 2.34.1