Use Object.entries rather than for in
This commit is contained in:
parent
13a94d06ea
commit
3795af6cb5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user