1681-engine / react / parseQuantity
Function: parseQuantity() ​
ts
function parseQuantity(text, max): number;Defined in: src/react/confirmStore.ts:54
A typed quantity held to 1..max: digits only, anything else 1.
Parameters ​
| Parameter | Type |
|---|---|
text | string |
max | number |
Returns ​
number