Muqriz 48f16bfc3e initail first | 4 个月前 | |
---|---|---|
.. | ||
index.d.ts | 4 个月前 | |
index.js | 4 个月前 | |
license | 4 个月前 | |
package.json | 4 个月前 | |
readme.md | 4 个月前 |
Check if the character represented by a given Unicode code point is fullwidth
$ npm install is-fullwidth-code-point
import isFullwidthCodePoint from 'is-fullwidth-code-point';
isFullwidthCodePoint('谢'.codePointAt(0));
//=> true
isFullwidthCodePoint('a'.codePointAt(0));
//=> false
Type: number
The code point of a character.