mirror of
https://github.com/tvytlx/ai-agent-deep-dive.git
synced 2026-04-04 08:04:48 +08:00
13 lines
261 B
JavaScript
13 lines
261 B
JavaScript
import {
|
|
_isFullWidth as isFullWidth,
|
|
_isWide as isWide,
|
|
} from 'get-east-asian-width';
|
|
|
|
export default function isFullwidthCodePoint(codePoint) {
|
|
if (!Number.isInteger(codePoint)) {
|
|
return false;
|
|
}
|
|
|
|
return isFullWidth(codePoint) || isWide(codePoint);
|
|
}
|