uikit/dist/chunks/numbers-CnO9mrbW.js
Mohamadzadeh 97407cffc0
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 52s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
update utils
2026-10-19 13:30:55 +03:30

19 lines
436 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const t = (n) => {
if (!(n == null || n === ""))
return String(n).replace(/\d/g, (r) => "۰۱۲۳۴۵۶۷۸۹"[Number(r)]);
}, e = (n) => {
if (!(n == null || n === ""))
return String(n).replace(
/[۰-۹]/g,
(r) => String("۰۱۲۳۴۵۶۷۸۹".indexOf(r))
);
}, i = (n) => {
if (!(n == null || n === ""))
return new Intl.NumberFormat("fa-IR").format(Number(n));
};
export {
e as a,
i as b,
t
};