UNPKG

is-fullwidth-code-point

Version:

Check if the character represented by a given Unicode code point is fullwidth

13 lines (10 loc) 261 B
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); }