is-fullwidth-code-point
- Version 5.0.0
- Published
- 3.46 kB
- 1 dependency
- MIT license
Install
npm i is-fullwidth-code-point
yarn add is-fullwidth-code-point
pnpm add is-fullwidth-code-point
Overview
Check if the character represented by a given Unicode code point is fullwidth
Index
Functions
Functions
function isFullwidthCodePoint
isFullwidthCodePoint: (codePoint: number) => boolean;
Check 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).
Parameter codePoint
The [code point](https://en.wikipedia.org/wiki/Code_point) of a character.
Example 1
import isFullwidthCodePoint from 'is-fullwidth-code-point';isFullwidthCodePoint('谢'.codePointAt(0));//=> trueisFullwidthCodePoint('a'.codePointAt(0));//=> false
Package Files (1)
Dependencies (1)
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/is-fullwidth-code-point
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/is-fullwidth-code-point)
- HTML<a href="https://www.jsdocs.io/package/is-fullwidth-code-point"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2359 ms. - Missing or incorrect documentation? Open an issue for this package.