removeLastCharacter
Removes the last character from a given Korean string and returns the result.
For detailed examples, see below.
function removeLastCharacter(
// Korean string
words: string
): string;
Examples
removeLastCharacter('안녕하세요 값'); // '안녕하세요 갑'
removeLastCharacter('프론트엔드'); // '프론트엔ㄷ'
removeLastCharacter('일요일'); // '일요이'
removeLastCharacter('전화'); // '전호'
removeLastCharacter('신세계'); // '신세ㄱ'