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
  5b93a771_d091_7dd6_caad_cdaab1ff0dc1["toArabicNumerals()"]
  ee5f77de_c428_7cc9_5d60_6e845e4412c1["carousel-rtl.tsx"]
  5b93a771_d091_7dd6_caad_cdaab1ff0dc1 -->|defined in| ee5f77de_c428_7cc9_5d60_6e845e4412c1
  05dd92fa_19f6_fb1b_efcd_6ca27a63cd85["CarouselRtl()"]
  05dd92fa_19f6_fb1b_efcd_6ca27a63cd85 -->|calls| 5b93a771_d091_7dd6_caad_cdaab1ff0dc1
  style 5b93a771_d091_7dd6_caad_cdaab1ff0dc1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/carousel-rtl.tsx lines 33–40

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/base/carousel-rtl.tsx.
Where is toArabicNumerals() defined?
toArabicNumerals() is defined in apps/v4/examples/base/carousel-rtl.tsx at line 33.
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