Skip to content

@swapped/connect-sdk / core / parseAmountInput

Function: parseAmountInput() ​

parseAmountInput(value): number | null

Defined in: src/modules/amount-input/amount-input.utils.ts:73

Parse a sanitized amount string into a finite number, or null when empty / invalid.

Parameters ​

value ​

string

Returns ​

number | null