API Reference
isCJK()
Detect whether a string contains CJK code points.
Import
import { isCJK } from "@graphrefly/ts/solutions/reactive-layout";
Signature
function isCJK(text: string): boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | Text to inspect. |
Returns
true when any character falls in a CJK range.
Example
isCJK("漢字");
Source
packages/ts/src/solutions/reactive-layout/segment.ts