Documentation
Usage
hasBatchim

hasBatchim

Checks if the last character of a Korean string has a batchim (jongseong).

hasBatchim(
  str: string,
  options?: { only?: "single" | "double" }
): boolean

Examples

hasBatchim('값'); // true
hasBatchim('토'); // false
hasBatchim('갑', { only: 'single' }); // true
hasBatchim('값', { only: 'single' }); // false
hasBatchim('토', { only: 'double' }); // false

Demo