numberAttribute
function
Transforms a value (typically a string) to a number. Intended to be used as a transform function of an input.
API
Usage Notes
numberAttribute( value: unknown, fallbackValue?: number): number;
Jump to details
Transforms a value (typically a string) to a number. Intended to be used as a transform function of an input.
numberAttribute( value: unknown, fallbackValue?: number): number;