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