diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-25 19:54:59 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-25 19:54:59 -0500 |
commit | 3795af6cb5230fd1b185566eaa354fe4a04c4ec6 (patch) | |
tree | c46b1754bc91db8a9bcbb981a5ee32150e11ca8e /ext/bg | |
parent | 13a94d06eaf850582577e6fb2c130ae03061c990 (diff) |
Use Object.entries rather than for in
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/deinflector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js index e2ced965..d548d271 100644 --- a/ext/bg/js/deinflector.js +++ b/ext/bg/js/deinflector.js @@ -57,9 +57,9 @@ class Deinflector { static normalizeReasons(reasons) { const normalizedReasons = []; - for (const reason in reasons) { + for (const [reason, reasonInfo] of Object.entries(reasons)) { const variants = []; - for (const {kanaIn, kanaOut, rulesIn, rulesOut} of reasons[reason]) { + for (const {kanaIn, kanaOut, rulesIn, rulesOut} of reasonInfo) { variants.push([ kanaIn, kanaOut, |