MCPcopy Index your code
hub / github.com/formatjs/formatjs / FormatNumeric

Function FormatNumeric

packages/ecma402-abstract/NumberFormat/FormatNumeric.ts:5–11  ·  view source on GitHub ↗
(
  internalSlots: NumberFormatInternal,
  x: Decimal
)

Source from the content-addressed store, hash-verified

3import {PartitionNumberPattern} from '#packages/ecma402-abstract/NumberFormat/PartitionNumberPattern.js'
4
5export function FormatNumeric(
6 internalSlots: NumberFormatInternal,
7 x: Decimal
8): string {
9 const parts = PartitionNumberPattern(internalSlots, x)
10 return parts.map(p => p.value).join('')
11}

Callers 2

getFunction · 0.85

Calls 1

PartitionNumberPatternFunction · 0.85

Tested by

no test coverage detected