MCPcopy Index your code
hub / github.com/minimal-ui-kit/material-kit-react / processInput

Function processInput

src/utils/format-number.ts:12–15  ·  view source on GitHub ↗
(inputValue: InputNumberValue)

Source from the content-addressed store, hash-verified

10const DEFAULT_LOCALE = { code: 'en-US', currency: 'USD' };
11
12function processInput(inputValue: InputNumberValue): number | null {
13 if (inputValue == null || Number.isNaN(inputValue)) return null;
14 return Number(inputValue);
15}
16
17// ----------------------------------------------------------------------
18

Callers 4

fNumberFunction · 0.85
fCurrencyFunction · 0.85
fPercentFunction · 0.85
fShortenNumberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected