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) {
|
static normalizeReasons(reasons) {
|
||||||
const normalizedReasons = [];
|
const normalizedReasons = [];
|
||||||
for (const reason in reasons) {
|
for (const [reason, reasonInfo] of Object.entries(reasons)) {
|
||||||
const variants = [];
|
const variants = [];
|
||||||
for (const {kanaIn, kanaOut, rulesIn, rulesOut} of reasons[reason]) {
|
for (const {kanaIn, kanaOut, rulesIn, rulesOut} of reasonInfo) {
|
||||||
variants.push([
|
variants.push([
|
||||||
kanaIn,
|
kanaIn,
|
||||||
kanaOut,
|
kanaOut,
|
||||||
|
Loading…
Reference in New Issue
Block a user