Skip to main content

isHangul

A function that checks whether a given string consists only of Korean (Hangul) characters.


Code​

πŸ”— View source code

Interface​

typescript
const isHangul: (value: string) => boolean

Usage​

typescript
import { isHangul } from '@modern-kit/utils';

isHangul('μ•ˆλ…•ν•˜μ„Έμš”'); // true

isHangul('Hello'); // false
isHangul('123'); // false
isHangul('!@#'); // false
isHangul(''); // false