combine
combineCharacter
Given inputs of an choseong, jungseong, and jongseong return a single Korean character
function combineCharacter(choseong: string, jungseong: string, jongseong?: string): string;
Examples
combineCharacter('ㄱ', 'ㅏ', 'ㅂㅅ') // '값'
combineCharacter('ㅌ', 'ㅗ') // '토'
Demo
combineVowels
Given two vowel inputs, combine them to create a diphthong. If the vowels cannot be combined according to the correct Korean rules, simply join them together
function combineVowels(vowel1: string, vowel2: string): string
Examples
combineVowels('ㅗ', 'ㅏ') // 'ㅘ'
combineVowels('ㅗ', 'ㅐ') // 'ㅙ'
combineVowels('ㅗ', 'ㅛ') // 'ㅗㅛ'