diff --git a/components/VersionDropdown.vue b/components/VersionDropdown.vue index 60ccc57dc..e7879a5ca 100644 --- a/components/VersionDropdown.vue +++ b/components/VersionDropdown.vue @@ -55,7 +55,7 @@ const setSpelling = (spelling: string) => { {{ display }} -
+
{ if (i + 1 < str.length) { // check for digraphs const digraph = str.substring(i, i + 2); - if (HBS_LATIN_TO_CYRILLIC.hasOwnProperty(digraph)) { + if (Object.hasOwn(HBS_LATIN_TO_CYRILLIC, digraph)) { result += HBS_LATIN_TO_CYRILLIC[digraph]; i += 2; continue; @@ -81,7 +81,7 @@ export const hbsLatinToCyrillic = (str: string): string => { } const char = str[i]; - if (HBS_LATIN_TO_CYRILLIC.hasOwnProperty(char)) { + if (Object.hasOwn(HBS_LATIN_TO_CYRILLIC, char)) { result += HBS_LATIN_TO_CYRILLIC[char]; } else { result += char;