문서
API
combine

combine

combineCharacter

인자로 받은 초성, 중성, 종성을 조합해 한글 1자를 반환합니다.

function combineCharacter(choseong: string, jungseong: string, jongseong?: string): string;

Examples

combineCharacter('ㄱ', 'ㅏ', 'ㅂㅅ') // '값'
combineCharacter('ㅌ', 'ㅗ') // '토'

사용해보기


combineVowels

인자로 두 개의 모음을 받아 합성하여 겹모음을 생성합니다. 만약 올바른 한글 규칙으로 합성할 수 없는 모음들이라면 단순 Join합니다.

function combineVowels(vowel1: string, vowel2: string): string 

Examples

combineVowels('ㅗ', 'ㅏ') // 'ㅘ'
combineVowels('ㅗ', 'ㅐ') // 'ㅙ'
combineVowels('ㅗ', 'ㅛ') // 'ㅗㅛ'

사용해보기