blob: 729d2020516f0b64dbcb8cb3443b7777b3c04769 [file] [log] [blame]
Tim van der Lippeb97da6b2021-02-12 14:32:53 +00001/**
2Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms).
3
4@param codePoint - The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
5
6@example
7```
8import isFullwidthCodePoint from 'is-fullwidth-code-point';
9
10isFullwidthCodePoint('谢'.codePointAt(0));
11//=> true
12
13isFullwidthCodePoint('a'.codePointAt(0));
14//=> false
15```
16*/
17export default function isFullwidthCodePoint(codePoint: number): boolean;