@cjser/is-fullwidth-code-point
v5.1.0-cjser.2
Published
Check if the character represented by a given Unicode code point is fullwidth
Maintainers
Readme
is-fullwidth-code-point
Check if the character represented by a given Unicode code point is fullwidth
Install
npm install is-fullwidth-code-pointUsage
import isFullwidthCodePoint from 'is-fullwidth-code-point';
isFullwidthCodePoint('谢'.codePointAt(0));
//=> true
isFullwidthCodePoint('a'.codePointAt(0));
//=> falseAPI
isFullwidthCodePoint(codePoint)
codePoint
Type: number
The code point of a character.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-fullwidth-code-point
