MCPcopy Create free account
hub / github.com/adobe/react-spectrum / index

Function index

packages/@internationalized/number/src/NumberParser.ts:409–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 let indexes = new Map(numerals.map((d, i) => [d, i]));
408 let numeral = new RegExp(`[${numerals.join('')}]`, 'g');
409 let index = d => String(indexes.get(d));
410
411 return {minusSign, plusSign, decimal, group, literals, numeral, numerals, index, noNumeralUnits};
412}

Callers

nothing calls this directly

Calls 1

StringFunction · 0.85

Tested by

no test coverage detected