MCPcopy
hub / github.com/formatjs/formatjs / formatRange

Function formatRange

packages/intl-numberformat/core.ts:102–115  ·  view source on GitHub ↗
(
  this: Intl.NumberFormat,
  start: number | bigint | Decimal,
  end: number | bigint | Decimal
)

Source from the content-addressed store, hash-verified

100}
101
102function formatRange(
103 this: Intl.NumberFormat,
104 start: number | bigint | Decimal,
105 end: number | bigint | Decimal
106) {
107 return FormatNumericRange(
108 this,
109 ToIntlMathematicalValue(start),
110 ToIntlMathematicalValue(end),
111 {
112 getInternalSlots,
113 }
114 )
115}
116
117function formatRangeToParts(
118 this: Intl.NumberFormat,

Callers

nothing calls this directly

Calls 2

FormatNumericRangeFunction · 0.85
ToIntlMathematicalValueFunction · 0.85

Tested by

no test coverage detected