Skip to content

Commit

Permalink
Merge pull request #4 from 2Ring/replace_for_in_with_for_statement
Browse files Browse the repository at this point in the history
Replace for..in with for statement
  • Loading branch information
dmester authored Sep 9, 2018
2 parents f56a6df + 06fbeec commit 62a0c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stringformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 62a0c92

Please sign in to comment.