From b782fb8041dac849a617d22cee5eb259e163e1dd Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Wed, 12 Aug 2015 00:29:25 +1000 Subject: [PATCH] declare i inline --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index b5f4588..77d0f47 100644 --- a/index.js +++ b/index.js @@ -1406,9 +1406,8 @@ function utf8ToBytes (string, units) { var length = string.length var leadSurrogate = null var bytes = [] - var i = 0 - for (; i < length; i++) { + for (var i = 0; i < length; i++) { codePoint = string.charCodeAt(i) // is surrogate component -- 2.34.1