From 06fbeece084124c8768f6fb7520d6596f980c3db Mon Sep 17 00:00:00 2001 From: petronellius Date: Tue, 7 Aug 2018 14:31:28 +0200 Subject: [PATCH] Replace for..in with for statement --- src/stringformat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stringformat.js b/src/stringformat.js index eefffe5..22eead6 100644 --- a/src/stringformat.js +++ b/src/stringformat.js @@ -780,7 +780,7 @@ var sffjs = (function() { // If a format method has not already been defined on the following objects, set __Format as format. var formattables = [ Date.prototype, _Number.prototype, _String ]; - for (var i in formattables) { + for (var i = 0, length = formattables.length; i < length; i++) { formattables[i].format = formattables[i].format || formattables[i].__Format; }