"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var eastasianwidth_1 = __importDefault(require("eastasianwidth"));
/**
* Whether the character is full width character (e.g. Chinese/Japanese)
*
* @param {string} char
* @returns {boolean}
* @category string
* @module isFullWidthChar
*/
var isFullWidthChar = function (char) {
if (eastasianwidth_1.default.characterLength(char) !== 1)
return true;
return false;
};
exports.default = isFullWidthChar;
Source