Home / Function/ toArabicNumerals() — ui Function Reference

toArabicNumerals() — ui Function Reference

Architecture documentation for the toArabicNumerals() function in carousel-rtl.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  1f123507_4898_918a_05b4_9128b669ff3d["toArabicNumerals()"]
  1899fd32_ac2c_c271_6dc5_24ee1ef64b41["carousel-rtl.tsx"]
  1f123507_4898_918a_05b4_9128b669ff3d -->|defined in| 1899fd32_ac2c_c271_6dc5_24ee1ef64b41
  612b92c2_4d51_af11_7330_604bf6358470["CarouselRtl()"]
  612b92c2_4d51_af11_7330_604bf6358470 -->|calls| 1f123507_4898_918a_05b4_9128b669ff3d
  style 1f123507_4898_918a_05b4_9128b669ff3d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/carousel-rtl.tsx lines 32–39

function toArabicNumerals(num: number): string {
  const arabicNumerals = ["٠", "١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩"]
  return num
    .toString()
    .split("")
    .map((digit) => arabicNumerals[parseInt(digit, 10)])
    .join("")
}

Subdomains

Called By

Frequently Asked Questions

What does toArabicNumerals() do?
toArabicNumerals() is a function in the ui codebase, defined in apps/v4/examples/radix/carousel-rtl.tsx.
Where is toArabicNumerals() defined?
toArabicNumerals() is defined in apps/v4/examples/radix/carousel-rtl.tsx at line 32.
What calls toArabicNumerals()?
toArabicNumerals() is called by 1 function(s): CarouselRtl.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free