Documentation
Usage
combineVowels

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('ㅗ', 'ㅛ'); // 'ㅗㅛ'

Demo