Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Replace for-in with basic for loop in FormatNumber (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
watilde authored and caridy committed May 14, 2016
1 parent e150378 commit 41ada9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/11.numberformat.js
Expand Up @@ -704,8 +704,8 @@ export function FormatNumber(numberFormat, x) {
// 2. Let result be an empty String.
let result = '';
// 3. For each part in parts, do:
for (let idx in parts) {
let part = parts[idx];
for (let i = 0; parts.length > i; i++) {
let part = parts[i];
// a. Set result to a String value produced by concatenating result and part.[[value]].
result += part['[[value]]'];
}
Expand Down

0 comments on commit 41ada9e

Please sign in to comment.