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
function 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.
function numberAttribute( value: unknown, fallbackValue?: number): number;