Skip to content

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 ​

ParameterType
textstring
maxnumber

Returns ​

number

Released under the MIT License.