Skip to content
PACKAGES

isCJK()

Detect whether a string contains CJK code points.

import { isCJK } from "@graphrefly/ts/solutions/reactive-layout";
function isCJK(text: string): boolean
ParameterTypeDescription
textstringText to inspect.

true when any character falls in a CJK range.

isCJK("漢字");

packages/ts/src/solutions/reactive-layout/segment.ts