UNPKG

react-tesna-utils

Version:

A versatile utility library featuring optimized functions for data manipulation, clipboard handling, text truncation, comparison, validation, and more. Designed for modern JavaScript and TypeScript projects with efficient and reusable solutions.

6 lines (5 loc) 313 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toEnDigit = void 0; const toEnDigit = (n) => n === null || n === void 0 ? void 0 : n.replace(/[\u0660-\u0669\u06f0-\u06f9]/g, (a) => (a === null || a === void 0 ? void 0 : a.charCodeAt(0)) & 0xf); exports.toEnDigit = toEnDigit;