From 78cde66d90ddb2fa317eb87d2f06eefc71d47c26 Mon Sep 17 00:00:00 2001 From: wnhlee <40269597+2wheeh@users.noreply.github.com> Date: Tue, 6 Aug 2024 02:03:21 +0900 Subject: [PATCH] refactor: rename I => index (#221) --- src/standardizePronunciation/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/standardizePronunciation/index.ts b/src/standardizePronunciation/index.ts index 847ef6b4..11cf110f 100644 --- a/src/standardizePronunciation/index.ts +++ b/src/standardizePronunciation/index.ts @@ -39,19 +39,19 @@ export function standardizePronunciation(hangul: string, options: Options = { ha } const processSyllables = (syllables: Syllable[], phrase: string, options: Options) => - syllables.map((currentSyllable, I, array) => { - const nextSyllable = I < array.length - 1 ? array[I + 1] : null; + syllables.map((currentSyllable, index, array) => { + const nextSyllable = index < array.length - 1 ? array[index + 1] : null; const { current, next } = applyRules({ currentSyllable, phrase, - index: I, + index, nextSyllable, options, }); if (next) { - array[I + 1] = next; + array[index + 1] = next; } return current;