From 1e5bb8c8d93cc7a88b191da8848c1166afb1b1a8 Mon Sep 17 00:00:00 2001 From: Aaron Turner Date: Tue, 14 Feb 2023 15:07:14 -0800 Subject: [PATCH] Added a missing let declaration for our for...in loop --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 62866fd..728b696 100644 --- a/index.js +++ b/index.js @@ -167,7 +167,7 @@ for (let i = 0; i < 10; i++) codes['numpad '+i] = i + 96; var names = exports.names = exports.title = {}; // title for backward compat // Create reverse mapping -for (i in codes) names[codes[i]] = i; +for (let i in codes) names[codes[i]] = i; // Add aliases for (var alias in aliases) {